From 0ac20ca8ed8a21c5387b7624fa11cf21d783f16c Mon Sep 17 00:00:00 2001 From: reimar Date: Sun, 26 Nov 2006 13:55:55 +0000 Subject: 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 --- osdep/mmap_anon.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'osdep') 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 #include @@ -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 */ -- cgit v1.2.3