summaryrefslogtreecommitdiff
path: root/src/backlight.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/backlight.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/backlight.c')
-rw-r--r--src/backlight.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/backlight.c b/src/backlight.c
index 5d63b2cf..84d8f761 100644
--- a/src/backlight.c
+++ b/src/backlight.c
@@ -34,6 +34,12 @@
#include <sys/stat.h>
#include <sys/ioctl.h>
+#if MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#elif MAJOR_IN_SYSMACROS
+#include <sys/sysmacros.h>
+#endif
+
#include <stdio.h>
#include <stdlib.h>
#include <string.h>