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
This commit is contained in:
reimar 2006-11-26 13:55:55 +00:00
parent 3e1a24ac55
commit 0ac20ca8ed
1 changed files with 3 additions and 0 deletions

View File

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