diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-02-10 00:09:04 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2009-02-10 00:09:04 +0000 |
commit | 0d5aec1211d900a532a66830d814cd5358c96b3a (patch) | |
tree | df5c35e13e55f5dc457b9bc4b1ca0e71d71ab43c /utils/porting.h | |
parent | e0da861a29f864f1646603ae62e336fda093477c (diff) |
add mmap()/munmap() implementation for Windows
Diffstat (limited to 'utils/porting.h')
-rw-r--r-- | utils/porting.h | 12 |
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" |