diff --git a/hw/xfree86/os-support/bsd/i386_video.c b/hw/xfree86/os-support/bsd/i386_video.c index 3a5b354ae..607e4ca2b 100644 --- a/hw/xfree86/os-support/bsd/i386_video.c +++ b/hw/xfree86/os-support/bsd/i386_video.c @@ -36,6 +36,10 @@ #include "xf86Priv.h" #include "xf86_OSlib.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 a4a0f517f..2508eaa06 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -197,10 +197,6 @@ struct pcvtid { #include #endif -#if defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL) -#include -#endif - #define CLEARDTR_SUPPORT #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */