Module Name: xsrc
Committed By: maya
Date: Sun Sep 9 03:58:37 UTC 2018
Modified Files:
xsrc/external/mit/libdrm/dist: xf86drm.c
Log Message:
include sys/param.h for MIN/MAX, needed when building in pkgsrc
tolerate set version failing in another location too.
this now works well enough for mesa 18.2.0 to display glxgears followed
soon by X crashing and refusing to start again until the machine is
rebooted, at least in my case.
PR pkg/51795, pkg/51786
To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 xsrc/external/mit/libdrm/dist/xf86drm.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: xsrc/external/mit/libdrm/dist/xf86drm.c
diff -u xsrc/external/mit/libdrm/dist/xf86drm.c:1.19 xsrc/external/mit/libdrm/dist/xf86drm.c:1.20
--- xsrc/external/mit/libdrm/dist/xf86drm.c:1.19 Sun Sep 9 03:24:46 2018
+++ xsrc/external/mit/libdrm/dist/xf86drm.c Sun Sep 9 03:58:37 2018
@@ -89,6 +89,7 @@
#ifdef __NetBSD__
#undef DRM_MAJOR
#define DRM_MAJOR 180
+#include <sys/param.h>
#include <dev/pci/pcireg.h>
#include <pci.h>
#endif
@@ -3128,8 +3129,10 @@ static int drmParsePciBusInfo(int maj, i
sv.drm_dd_major = -1;
sv.drm_dd_minor = -1;
if (drmSetInterfaceVersion(fd, &sv)) {
- (void)close(fd);
- return -ENODEV;
+ /*
+ * We're probably not the master. Hope the master already
+ * set the version to >=1.1 so that we can get the busid.
+ */
}
}