pkgsrc/x11/libdrm/patches/patch-aa
bjs 7657825b67 Update to libdrm-2.3.1. There is no up-to-date ChangeLog in the package
whatsoever, so I cannot include a list here (see GIT history if
you're curious).

NOTE: This version of libdrm no longer includes the TTM interface.
      If any [xorg/mesa] packages are updated to versions explicitly requiring
      libdrm-2.3.1, then BUILDLINK_API_DEPENDS for this package will
      need to be changed.  Also, the i915tex dri driver found in
      graphics/MesaLib will not build with this version--but nor was it
      supported on any platform except Linux.  I have remove i915tex
      from the MesaLib driver build; this should be enough to avoid problems.
2008-07-16 06:41:17 +00:00

16 lines
407 B
Text

$NetBSD: patch-aa,v 1.4 2008/07/16 06:41:17 bjs Exp $
--- shared-core/drm.h.orig 2008-07-01 03:55:17.000000000 -0400
+++ shared-core/drm.h
@@ -92,7 +92,10 @@
#ifdef __OpenBSD__
#define DRM_MAJOR 81
#endif
-#if defined(__linux__) || defined(__NetBSD__)
+#if defined(__NetBSD__)
+#define DRM_MAJOR 180
+#endif
+#if defined(__linux__)
#define DRM_MAJOR 226
#endif
#define DRM_MAX_MINOR 15