#define MAP_PRIVATE 0 for _WIN32

This commit is contained in:
Sergey Lyubka 2012-09-27 08:19:14 +01:00
parent 5c9ab40601
commit d970705596

View File

@ -3856,6 +3856,7 @@ static void *mmap(void *addr, int64_t len, int prot, int flags, int fd,
}
#define munmap(x, y) UnmapViewOfFile(x)
#define MAP_FAILED NULL
#define MAP_PRIVATE 0
#define PROT_READ 0
#else
#include <sys/mman.h>