From 3fdb6be3166790ff3aad68dd4d4bb83963815e4b Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 26 Dec 2014 17:14:48 +0100 Subject: 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. --- wscript | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'wscript') 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', @@ -196,10 +196,6 @@ iconv support use --disable-iconv.", 'desc': 'shm', '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', -- cgit v1.2.3