mirror of
https://github.com/microsoft/mimalloc.git
synced 2025-05-05 15:09:31 +03:00
support cygwin compilation (pr #712)
This commit is contained in:
parent
f20d22a3e4
commit
61a32e62b8
1 changed files with 2 additions and 2 deletions
|
@ -50,7 +50,7 @@ terms of the MIT license. A copy of the license can be found in the file
|
||||||
#include <sys/sysctl.h>
|
#include <sys/sysctl.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if !defined(__HAIKU__) && !defined(__APPLE__)
|
#if !defined(__HAIKU__) && !defined(__APPLE__) && !defined(__CYGWIN__)
|
||||||
#define MI_HAS_SYSCALL_H
|
#define MI_HAS_SYSCALL_H
|
||||||
#include <sys/syscall.h>
|
#include <sys/syscall.h>
|
||||||
#endif
|
#endif
|
||||||
|
@ -410,7 +410,7 @@ int _mi_prim_protect(void* start, size_t size, bool protect) {
|
||||||
// Huge page allocation
|
// Huge page allocation
|
||||||
//---------------------------------------------
|
//---------------------------------------------
|
||||||
|
|
||||||
#if (MI_INTPTR_SIZE >= 8) && !defined(__HAIKU__)
|
#if (MI_INTPTR_SIZE >= 8) && !defined(__HAIKU__) && !defined(__CYGWIN__)
|
||||||
|
|
||||||
#ifndef MPOL_PREFERRED
|
#ifndef MPOL_PREFERRED
|
||||||
#define MPOL_PREFERRED 1
|
#define MPOL_PREFERRED 1
|
||||||
|
|
Loading…
Add table
Reference in a new issue