diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-25 13:16:56 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2015-03-25 14:14:30 +0000 |
commit | aa40f990142eb165ee7f60f08e9616bc5bebdebe (patch) | |
tree | e14453e89deeababc64342fdeb4056d3eec65bb2 /src/backlight.c | |
parent | d85e68e2d310a5646e4e71a06edf2b21b1d18688 (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.c | 6 |
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> |