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>
This commit is contained in:
parent
d85e68e2d3
commit
aa40f99014
|
|
@ -417,6 +417,7 @@ AC_ARG_ENABLE(sna,
|
|||
[SNA=auto])
|
||||
|
||||
AC_CHECK_HEADERS([dev/wscons/wsconsio.h alloca.h])
|
||||
AC_HEADER_MAJOR
|
||||
|
||||
if test "x$SNA" != "xno"; then
|
||||
AC_DEFINE(USE_SNA, 1, [Enable SNA support])
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -9,6 +9,12 @@
|
|||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#if MAJOR_IN_MKDEV
|
||||
#include <sys/mkdev.h>
|
||||
#elif MAJOR_IN_SYSMACROS
|
||||
#include <sys/sysmacros.h>
|
||||
#endif
|
||||
|
||||
#define DBG 0
|
||||
|
||||
#if defined(__GNUC__) && (__GNUC__ > 3)
|
||||
|
|
|
|||
Loading…
Reference in New Issue