diff --git a/configure.ac b/configure.ac index 52d35c376..4250f80b0 100644 --- a/configure.ac +++ b/configure.ac @@ -1280,6 +1280,7 @@ if test "x$XORG" = xyes; then solaris*) XORG_OS="solaris" XORG_OS_SUBDIR="solaris" + AC_CHECK_HEADERS([sys/kd.h]) # This really should be tests for specific features, but the #ifdef's # were done as a simple version check in XFree86 4.x and haven't been # fixed yet diff --git a/hw/xfree86/os-support/solaris/sun_init.c b/hw/xfree86/os-support/solaris/sun_init.c index 1f389cb40..b2237d919 100644 --- a/hw/xfree86/os-support/solaris/sun_init.c +++ b/hw/xfree86/os-support/solaris/sun_init.c @@ -29,7 +29,7 @@ #include "xf86.h" #include "xf86Priv.h" #include "xf86_OSlib.h" -#if defined(__i386__) || defined(__i386) || defined(__x86) +#ifdef HAVE_SYS_KD_H # include #endif diff --git a/include/xorg-config.h.in b/include/xorg-config.h.in index 61374069e..f9b77d03d 100644 --- a/include/xorg-config.h.in +++ b/include/xorg-config.h.in @@ -54,6 +54,9 @@ /* Solaris 8 or later? */ #undef __SOL8__ +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_KD_H + /* Define to 1 if you have the `walkcontext' function (used on Solaris for xorg_backtrace in hw/xfree86/common/xf86Events.c */ #undef HAVE_WALKCONTEXT