From dae76bbaafdb3fe4993c9f5122d6c7e85f556ea3 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 27 Feb 2024 18:51:09 +0100 Subject: [PATCH] include: move busfault.h out of public include dir this header is isn't public, so it's more appropriate, where the actual code is, which is the os/ directory. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- Xext/shm.c | 4 +++- os/WaitFor.c | 2 +- os/busfault.c | 4 +++- {include => os}/busfault.h | 2 ++ os/osinit.c | 4 ++-- 5 files changed, 11 insertions(+), 5 deletions(-) rename {include => os}/busfault.h (98%) diff --git a/Xext/shm.c b/Xext/shm.c index 071bd1a41..00cf12a0b 100644 --- a/Xext/shm.c +++ b/Xext/shm.c @@ -43,6 +43,9 @@ in this Software without prior written authorization from The Open Group. #include #include #include + +#include "os/busfault.h" + #include "misc.h" #include "os.h" #include "dixstruct.h" @@ -59,7 +62,6 @@ in this Software without prior written authorization from The Open Group. #include #include #include "protocol-versions.h" -#include "busfault.h" /* Needed for Solaris cross-zone shared memory extension */ #ifdef HAVE_SHMCTL64 diff --git a/os/WaitFor.c b/os/WaitFor.c index a388cd573..b08b44040 100644 --- a/os/WaitFor.c +++ b/os/WaitFor.c @@ -65,6 +65,7 @@ SOFTWARE. #include #include "dix/dix_priv.h" +#include "os/busfault.h" #include "misc.h" #include "osdep.h" @@ -73,7 +74,6 @@ SOFTWARE. #ifdef DPMSExtension #include "dpmsproc.h" #endif -#include "busfault.h" #ifdef WIN32 /* Error codes from windows sockets differ from fileio error codes */ diff --git a/os/busfault.c b/os/busfault.c index a2d433a2e..7e6d4612e 100644 --- a/os/busfault.c +++ b/os/busfault.c @@ -26,8 +26,10 @@ #include #include + +#include "os/busfault.h" + #include "misc.h" -#include #include #include #include diff --git a/include/busfault.h b/os/busfault.h similarity index 98% rename from include/busfault.h rename to os/busfault.h index f89a5833e..d31d046fc 100644 --- a/include/busfault.h +++ b/os/busfault.h @@ -25,6 +25,8 @@ #include +#include + #ifdef HAVE_SIGACTION #include diff --git a/os/osinit.c b/os/osinit.c index db8427ba9..9d4e5bbc2 100644 --- a/os/osinit.c +++ b/os/osinit.c @@ -63,6 +63,8 @@ SOFTWARE. #include #endif +#include "os/busfault.h" + #include "misc.h" #include "dixstruct.h" @@ -158,8 +160,6 @@ OsSigHandler(int signo) } #endif /* !WIN32 || __CYGWIN__ */ -#include "busfault.h" - void OsInit(void) {