mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-20 14:09:32 +03:00
Support CYGWIN
This commit is contained in:
parent
dd7348066f
commit
f4137f34ae
1 changed files with 1 additions and 1 deletions
2
src/os.c
2
src/os.c
|
@ -1197,7 +1197,7 @@ static void* mi_os_alloc_huge_os_pagesx(void* addr, size_t size, int numa_node)
|
||||||
return VirtualAlloc(addr, size, flags, PAGE_READWRITE);
|
return VirtualAlloc(addr, size, flags, PAGE_READWRITE);
|
||||||
}
|
}
|
||||||
|
|
||||||
#elif defined(MI_OS_USE_MMAP) && (MI_INTPTR_SIZE >= 8) && !defined(__HAIKU__)
|
#elif defined(MI_OS_USE_MMAP) && (MI_INTPTR_SIZE >= 8) && !defined(__HAIKU__) && !defined(__CYGWIN__)
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#ifndef MPOL_PREFERRED
|
#ifndef MPOL_PREFERRED
|
||||||
#define MPOL_PREFERRED 1
|
#define MPOL_PREFERRED 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue