summaryrefslogtreecommitdiffstats
path: root/osdep
diff options
context:
space:
mode:
authorreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-26 13:55:55 +0000
committerreimar <reimar@b3059339-0415-0410-9bf9-f77b7e298cf2>2006-11-26 13:55:55 +0000
commit0ac20ca8ed8a21c5387b7624fa11cf21d783f16c (patch)
tree20d221cf88bab90f70d8e945edd60828225ce098 /osdep
parent3e1a24ac55d05d20a8fb6edb3c6caa3863de4abf (diff)
downloadmpv-0ac20ca8ed8a21c5387b7624fa11cf21d783f16c.tar.bz2
mpv-0ac20ca8ed8a21c5387b7624fa11cf21d783f16c.tar.xz
Disable when HAVE_SYS_MMAN_H is not defined, since it can not be compiled then.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21269 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'osdep')
-rw-r--r--osdep/mmap_anon.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep/mmap_anon.c b/osdep/mmap_anon.c
index 484615311a..8bd7f308c7 100644
--- a/osdep/mmap_anon.c
+++ b/osdep/mmap_anon.c
@@ -2,6 +2,8 @@
* \file mmap_anon.c
* \brief Provide a compatible anonymous space mapping function
*/
+#include "config.h"
+#ifdef HAVE_SYS_MMAN_H
#include <sys/mman.h>
#include <stdio.h>
@@ -62,3 +64,4 @@ void *mmap_anon(void *addr, size_t len, int prot, int flags, off_t offset)
return result;
}
+#endif /* HAVE_SYS_MMAN_H */