From 5057c716eb5960f6971be620ce03a808d0f191ac Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 18 Mar 2024 15:25:23 +0100 Subject: [PATCH] Fix missing include of sys/stat.h Instead of relying on very indirect includes, it's more more clean when everybody explicitly includes what he really needs. Signed-off-by: Enrico Weigelt, metux IT consult Part-of: --- hw/xfree86/common/xf86Config.c | 1 + hw/xfree86/common/xf86Helper.c | 2 ++ hw/xfree86/common/xf86Init.c | 1 + hw/xfree86/os-support/shared/sigio.c | 1 + hw/xfree86/os-support/solaris/sun_init.c | 1 + hw/xfree86/os-support/xf86_OSlib.h | 4 ---- hw/xquartz/darwin.c | 1 + 7 files changed, 7 insertions(+), 4 deletions(-) diff --git a/hw/xfree86/common/xf86Config.c b/hw/xfree86/common/xf86Config.c index 41acb25aa..c3d87fbe2 100644 --- a/hw/xfree86/common/xf86Config.c +++ b/hw/xfree86/common/xf86Config.c @@ -46,6 +46,7 @@ #include #endif +#include #include #include diff --git a/hw/xfree86/common/xf86Helper.c b/hw/xfree86/common/xf86Helper.c index 2786e6c6c..85bd3bb33 100644 --- a/hw/xfree86/common/xf86Helper.c +++ b/hw/xfree86/common/xf86Helper.c @@ -38,7 +38,9 @@ #include #endif +#include #include + #include "mi.h" #include "os.h" #include "servermd.h" diff --git a/hw/xfree86/common/xf86Init.c b/hw/xfree86/common/xf86Init.c index 3308329a1..2f25272a5 100644 --- a/hw/xfree86/common/xf86Init.c +++ b/hw/xfree86/common/xf86Init.c @@ -36,6 +36,7 @@ #include #include +#include #undef HAS_UTSNAME #if !defined(WIN32) diff --git a/hw/xfree86/os-support/shared/sigio.c b/hw/xfree86/os-support/shared/sigio.c index be78b9eaa..67de2e925 100644 --- a/hw/xfree86/os-support/shared/sigio.c +++ b/hw/xfree86/os-support/shared/sigio.c @@ -57,6 +57,7 @@ #endif #include +#include #include #include "os/osdep.h" diff --git a/hw/xfree86/os-support/solaris/sun_init.c b/hw/xfree86/os-support/solaris/sun_init.c index aac212707..99fd9fdf7 100644 --- a/hw/xfree86/os-support/solaris/sun_init.c +++ b/hw/xfree86/os-support/solaris/sun_init.c @@ -27,6 +27,7 @@ #endif #include +#include #include "../../../../os/cmdline.h" diff --git a/hw/xfree86/os-support/xf86_OSlib.h b/hw/xfree86/os-support/xf86_OSlib.h index 8d321dc01..3f8dae067 100644 --- a/hw/xfree86/os-support/xf86_OSlib.h +++ b/hw/xfree86/os-support/xf86_OSlib.h @@ -88,7 +88,6 @@ #include #include #include -#include #include #include @@ -155,8 +154,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX]; #include -#include - #include #ifdef __linux__ #define HAS_USL_VTS @@ -185,7 +182,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX]; #include #include -#include #endif /* CSRG_BASED */ diff --git a/hw/xquartz/darwin.c b/hw/xquartz/darwin.c index 167973845..56530ec30 100644 --- a/hw/xquartz/darwin.c +++ b/hw/xquartz/darwin.c @@ -32,6 +32,7 @@ #include #endif +#include #include #include