mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-15 11:30:30 +01:00
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>
(cherry picked from commit 5057c716eb)
This commit is contained in:
parent
53b60764f4
commit
e59cbdbdc4
7 changed files with 7 additions and 4 deletions
|
|
@ -46,6 +46,7 @@
|
|||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <grp.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -36,6 +36,7 @@
|
|||
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#undef HAS_UTSNAME
|
||||
#if !defined(WIN32)
|
||||
|
|
|
|||
|
|
@ -57,6 +57,7 @@
|
|||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "os/osdep.h"
|
||||
|
|
|
|||
|
|
@ -27,6 +27,7 @@
|
|||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@
|
|||
#include <dix-config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/stat.h>
|
||||
#include <X11/X.h>
|
||||
#include <X11/Xproto.h>
|
||||
#include "os.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue