mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-03 01:21:16 +03:00
#define MAP_PRIVATE 0 for _WIN32
This commit is contained in:
@@ -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 munmap(x, y) UnmapViewOfFile(x)
|
||||||
#define MAP_FAILED NULL
|
#define MAP_FAILED NULL
|
||||||
|
#define MAP_PRIVATE 0
|
||||||
#define PROT_READ 0
|
#define PROT_READ 0
|
||||||
#else
|
#else
|
||||||
#include <sys/mman.h>
|
#include <sys/mman.h>
|
||||||
|
Reference in New Issue
Block a user