summaryrefslogtreecommitdiff
path: root/src/intel_device.c
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2015-03-25 13:16:56 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2015-03-25 14:14:30 +0000
commitaa40f990142eb165ee7f60f08e9616bc5bebdebe (patch)
treee14453e89deeababc64342fdeb4056d3eec65bb2 /src/intel_device.c
parentd85e68e2d310a5646e4e71a06edf2b21b1d18688 (diff)
Use AC_HEADER_MAJOR to find how to include major()
We need to include <sys/mkdev.h> on Solaris. Reported-by: Richard Palo <richard@netbsd.org> Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89763 Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/intel_device.c')
-rw-r--r--src/intel_device.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/intel_device.c b/src/intel_device.c
index 76b08315..f1a6887d 100644
--- a/src/intel_device.c
+++ b/src/intel_device.c
@@ -38,6 +38,12 @@
#include <dirent.h>
#include <errno.h>
+#if MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#elif MAJOR_IN_SYSMACROS
+#include <sys/sysmacros.h>
+#endif
+
#include <pciaccess.h>
#include <xorg-server.h>