Pārlūkot izejas kodu

#define MAP_PRIVATE 0 for _WIN32

Sergey Lyubka 12 gadi atpakaļ
vecāks
revīzija
d970705596
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      mongoose.c

+ 1 - 0
mongoose.c

@@ -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>