From aa40f990142eb165ee7f60f08e9616bc5bebdebe Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Wed, 25 Mar 2015 13:16:56 +0000 Subject: Use AC_HEADER_MAJOR to find how to include major() We need to include on Solaris. Reported-by: Richard Palo Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89763 Signed-off-by: Chris Wilson --- src/backlight.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/backlight.c') 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 #include +#if MAJOR_IN_MKDEV +#include +#elif MAJOR_IN_SYSMACROS +#include +#endif + #include #include #include -- cgit v1.2.3