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:
Enrico Weigelt, metux IT consult
2024-03-15 18:32:39 +01:00
committed by Marge Bot
parent 8ce76acddf
commit e2fa0d2ae0
8 changed files with 11 additions and 11 deletions

View File

@@ -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>