summaryrefslogtreecommitdiff
path: root/utils/porting.h
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-02-10 00:09:04 +0000
committerMike Frysinger <vapier@gentoo.org>2009-02-10 00:09:04 +0000
commit0d5aec1211d900a532a66830d814cd5358c96b3a (patch)
treedf5c35e13e55f5dc457b9bc4b1ca0e71d71ab43c /utils/porting.h
parente0da861a29f864f1646603ae62e336fda093477c (diff)
add mmap()/munmap() implementation for Windows
Diffstat (limited to 'utils/porting.h')
-rw-r--r--utils/porting.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/utils/porting.h b/utils/porting.h
index becd7acaa..6bb7fa91f 100644
--- a/utils/porting.h
+++ b/utils/porting.h
@@ -22,10 +22,18 @@
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/types.h>
-#include <sys/wait.h>
+
+#ifdef __LDSO_LDD_SUPPORT__
+# include <sys/wait.h>
+#endif
+
+#if defined(_WIN32) || defined(_WINNT)
+# include "mmap-windows.c"
+#else
+# include <sys/mman.h>
+#endif
#include <link.h>
-#include <sys/mman.h>
/* makefile will include elf.h for us */
#include "bswap.h"