summaryrefslogtreecommitdiff
path: root/utils/porting.h
diff options
context:
space:
mode:
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"