#include <_mingw.h>
#endif
+#endif //_WIN32
+
+#if defined(_WIN32) || !P_HAVE_MMAP
#include <sys/types.h>
#ifdef __cplusplus
#define MS_SYNC 2
#define MS_INVALIDATE 4
+#ifdef _WIN32
void* mmap(void *addr, size_t len, int prot, int flags, int fildes, off_t off);
int munmap(void *addr, size_t len);
int mprotect(void *addr, size_t len, int prot);
int msync(void *addr, size_t len, int flags);
int mlock(const void *addr, size_t len);
int munlock(const void *addr, size_t len);
+#endif
#ifdef __cplusplus
};