diff --git a/hw/xfree86/os-support/bsd/i386_video.c b/hw/xfree86/os-support/bsd/i386_video.c index 7ad8286b3..635a17265 100644 --- a/hw/xfree86/os-support/bsd/i386_video.c +++ b/hw/xfree86/os-support/bsd/i386_video.c @@ -36,6 +36,10 @@ #include "xf86_OSlib.h" #include "xf86OSpriv.h" +#if defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL) +#include +#endif + #if defined(__NetBSD__) && !defined(MAP_FILE) #define MAP_FLAGS MAP_SHARED #else diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h index 214dd9466..62bc431d6 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -207,10 +207,6 @@ struct pcvtid { #define CONSOLE_X_BELL _IOW('t',123,int[2]) #endif -#if defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL) -#include -#endif - #define CLEARDTR_SUPPORT #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */