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 <info@metux.net>
Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1417>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-03-18 15:25:23 +01:00
parent 97e26532d5
commit 5057c716eb
7 changed files with 7 additions and 4 deletions

View File

@ -46,6 +46,7 @@
#include <xorg-config.h>
#endif
#include <sys/stat.h>
#include <sys/types.h>
#include <grp.h>

View File

@ -38,7 +38,9 @@
#include <xorg-config.h>
#endif
#include <sys/stat.h>
#include <X11/X.h>
#include "mi.h"
#include "os.h"
#include "servermd.h"

View File

@ -36,6 +36,7 @@
#include <stdlib.h>
#include <errno.h>
#include <sys/stat.h>
#undef HAS_UTSNAME
#if !defined(WIN32)

View File

@ -57,6 +57,7 @@
#endif
#include <errno.h>
#include <sys/stat.h>
#include <X11/X.h>
#include "os/osdep.h"

View File

@ -27,6 +27,7 @@
#endif
#include <errno.h>
#include <sys/stat.h>
#include "../../../../os/cmdline.h"

View File

@ -88,7 +88,6 @@
#include <sys/ioctl.h>
#include <signal.h>
#include <termio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <errno.h>
@ -155,8 +154,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
#include <errno.h>
#include <sys/stat.h>
#include <sys/mman.h>
#ifdef __linux__
#define HAS_USL_VTS
@ -185,7 +182,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#endif /* CSRG_BASED */

View File

@ -32,6 +32,7 @@
#include <dix-config.h>
#endif
#include <sys/stat.h>
#include <X11/X.h>
#include <X11/Xproto.h>