mirror of
https://github.com/mpv-player/mpv
synced 2025-04-22 15:17:43 +00:00
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:
parent
3e1a24ac55
commit
0ac20ca8ed
@ -2,6 +2,8 @@
|
|||||||
* \file mmap_anon.c
|
* \file mmap_anon.c
|
||||||
* \brief Provide a compatible anonymous space mapping function
|
* \brief Provide a compatible anonymous space mapping function
|
||||||
*/
|
*/
|
||||||
|
#include "config.h"
|
||||||
|
#ifdef HAVE_SYS_MMAN_H
|
||||||
|
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
#include <stdio.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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif /* HAVE_SYS_MMAN_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user