diff --git a/hw/xfree86/os-support/solaris/sun_vid.c b/hw/xfree86/os-support/solaris/sun_vid.c index a546f1f53..fa7c2a82e 100644 --- a/hw/xfree86/os-support/solaris/sun_vid.c +++ b/hw/xfree86/os-support/solaris/sun_vid.c @@ -51,8 +51,11 @@ #include /* get __x86 definition if not set by compiler */ #if defined(__i386__) || defined(__i386) || defined(__x86) -#define _NEED_SYSI86 -#endif +#include +#include +#include +#endif /* defined(__i386__) || defined(__i386) || defined(__x86) */ + #include "xf86.h" #include "xf86Priv.h" #include "xf86_OSlib.h" diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h index 768789e8e..4896b9957 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -93,22 +93,6 @@ #include -#if defined(_NEED_SYSI86) -#if !(defined (__sun) && defined (SVR4)) -#include -#include -#include -#endif -#include -#include -#if defined(SVR4) && !defined(__sun) -#include -#endif /* SVR4 && !__sun */ -#if defined(__sun) && (defined (__i386__) || defined(__i386) || defined(__x86)) && defined (SVR4) -#include -#endif -#endif /* _NEED_SYSI86 */ - #if !defined(__sun) || defined(HAVE_SYS_VT_H) #define HAS_USL_VTS #endif