summaryrefslogtreecommitdiffstats
path: root/wscript
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-12-26 17:14:48 +0100
committerwm4 <wm4@nowhere>2014-12-26 17:30:10 +0100
commit3fdb6be3166790ff3aad68dd4d4bb83963815e4b (patch)
treed114681f0209288e69120c4d253304214c2699dd /wscript
parent9317071bc309dfe22cf3b295de20e18ae9b80c26 (diff)
downloadmpv-3fdb6be3166790ff3aad68dd4d4bb83963815e4b.tar.bz2
mpv-3fdb6be3166790ff3aad68dd4d4bb83963815e4b.tar.xz
win32: add mmap() emulation
Makes all of overlay_add work on windows/mingw. Since we now don't explicitly check for mmap() anymore (it's always present), this also requires us to make af_export.c compile, but I haven't tested it.
Diffstat (limited to 'wscript')
-rw-r--r--wscript8
1 files changed, 2 insertions, 6 deletions
diff --git a/wscript b/wscript
index 7eab4f5b18..8b752fa607 100644
--- a/wscript
+++ b/wscript
@@ -110,8 +110,8 @@ main_dependencies = [
'name': 'posix',
'desc': 'POSIX environment',
# This should be good enough.
- 'func': check_statement(['poll.h', 'unistd.h'],
- 'struct pollfd pfd; poll(&pfd, 1, 0); fork(); int f[2]; pipe(f)'),
+ 'func': check_statement(['poll.h', 'unistd.h', 'sys/mman.h'],
+ 'struct pollfd pfd; poll(&pfd, 1, 0); fork(); int f[2]; pipe(f); munmap(f,0)'),
}, {
'name': 'posix-or-mingw',
'desc': 'programming environment',
@@ -197,10 +197,6 @@ iconv support use --disable-iconv.",
'func': check_statement(['sys/types.h', 'sys/ipc.h', 'sys/shm.h'],
'shmget(0, 0, 0); shmat(0, 0, 0); shmctl(0, 0, 0)')
}, {
- 'name': 'sys-mman-h',
- 'desc': 'mman.h',
- 'func': check_statement('sys/mman.h', 'mmap(0, 0, 0, 0, 0, 0)')
- }, {
'name': 'nanosleep',
'desc': 'nanosleep',
'func': check_statement('time.h', 'nanosleep(0,0)')