fix including <sys/mman.h>
Make sure everybody who needs stuff from <sys/mman.h> actually includes it, and dropped the include from xf86_OSlib.h. Check for all symbols defined by Open Group spec. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net> Part-of: <https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1412>
This commit is contained in:
parent
8ce76acddf
commit
e2fa0d2ae0
|
@ -35,9 +35,7 @@ in this Software without prior written authorization from The Open Group.
|
|||
#include <sys/types.h>
|
||||
#include <sys/ipc.h>
|
||||
#include <sys/shm.h>
|
||||
#ifdef HAVE_MEMFD_CREATE
|
||||
#include <sys/mman.h>
|
||||
#endif
|
||||
#include <unistd.h>
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Modes.h"
|
||||
|
|
|
@ -28,12 +28,13 @@
|
|||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/param.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
|
||||
#include <sys/param.h>
|
||||
#ifndef __NetBSD__
|
||||
#include <sys/sysctl.h>
|
||||
#endif
|
||||
|
|
|
@ -61,6 +61,7 @@
|
|||
#endif
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "xf86.h"
|
||||
|
|
|
@ -27,13 +27,12 @@
|
|||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <X11/X.h>
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
|
||||
#include <errno.h>
|
||||
#include <sys/mman.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
#include "xf86_OSlib.h"
|
||||
#include "xf86OSpriv.h"
|
||||
|
||||
|
|
|
@ -27,7 +27,9 @@
|
|||
#include <xorg-config.h>
|
||||
#endif
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "xf86.h"
|
||||
#include "xf86Priv.h"
|
||||
|
||||
|
|
|
@ -29,8 +29,9 @@
|
|||
|
||||
#include <errno.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
#include <X11/X.h>
|
||||
|
||||
#include "input.h"
|
||||
#include "scrnintstr.h"
|
||||
|
||||
|
|
|
@ -128,7 +128,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
|
|||
#endif /* !VT_ACKACQ */
|
||||
|
||||
#if defined(SVR4)
|
||||
#include <sys/mman.h>
|
||||
#if !(defined(__sun) && defined (SVR4))
|
||||
#define DEV_MEM "/dev/pmem"
|
||||
#endif
|
||||
|
@ -154,7 +153,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#include <sys/mman.h>
|
||||
#ifdef __linux__
|
||||
#define HAS_USL_VTS
|
||||
#include <sys/kd.h>
|
||||
|
@ -181,7 +179,6 @@ extern _X_HIDDEN char xf86SolarisFbDev[PATH_MAX];
|
|||
#include <errno.h>
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/mman.h>
|
||||
|
||||
#endif /* CSRG_BASED */
|
||||
|
||||
|
|
Loading…
Reference in New Issue