1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-18 04:45:33 +00:00

Wrap '#include <sys/mman.h>' in HAVE_SYS_MMAN_H.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26137 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
diego 2008-03-01 10:31:51 +00:00
parent 7a5924159c
commit c03c4b5431
6 changed files with 13 additions and 0 deletions

View File

@ -15,7 +15,9 @@
#include "config.h"
#include <sys/types.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>

View File

@ -27,7 +27,9 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/time.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <sys/ioctl.h>
#include "config.h"

View File

@ -18,7 +18,9 @@
#include <malloc.h>
#endif
#include <unistd.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <errno.h>
#include <fcntl.h>
#include <string.h>

View File

@ -17,13 +17,16 @@
* http://svn.mplayerhq.hu/mplayer/trunk/
*/
#include "config.h"
#include "ldt_keeper.h"
#include <string.h>
#include <stdlib.h>
#include <errno.h>
#include <fcntl.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <sys/types.h>
#include <stdio.h>
#include <unistd.h>

View File

@ -26,7 +26,9 @@
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include <inttypes.h>
#include "wine/windef.h"

View File

@ -68,7 +68,9 @@ for DLL to know too much about its environment.
#include <kstat.h>
#endif
#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#endif
#include "osdep/mmap_anon.h"
#if HAVE_VSSCANF