From 529e80026f8267df8033dd008d25d4e24fdc2add Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 18 Mar 2024 13:26:06 +0100 Subject: [PATCH] (submit/bsd-defines v2) xfree86: os-support: move including machine/sysarch.h out of public header The only consumer seems to be one BSD specific file, the few drivers using the *_iopl seem to include it on their own. Thus, no need to keep it in public headers. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xfree86/os-support/bsd/i386_video.c | 4 ++++ hw/xfree86/os-support/xf86_OSlib.h | 4 ---- 2 files changed, 4 insertions(+), 4 deletions(-) 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 855fab686..0fe9a8ec5 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -213,10 +213,6 @@ struct pcvtid { #include #endif -#if defined(USE_I386_IOPL) || defined(USE_AMD64_IOPL) -#include -#endif - #define CLEARDTR_SUPPORT #endif /* __FreeBSD__ || __NetBSD__ || __OpenBSD__ || __DragonFly__ */