support cygwin compilation (pr #712)

This commit is contained in:
Daan Leijen 2023-03-29 15:56:31 -07:00
parent f20d22a3e4
commit 61a32e62b8
1 changed files with 2 additions and 2 deletions

View File

@ -50,7 +50,7 @@ terms of the MIT license. A copy of the license can be found in the file
#include <sys/sysctl.h>
#endif
#if !defined(__HAIKU__) && !defined(__APPLE__)
#if !defined(__HAIKU__) && !defined(__APPLE__) && !defined(__CYGWIN__)
#define MI_HAS_SYSCALL_H
#include <sys/syscall.h>
#endif
@ -410,7 +410,7 @@ int _mi_prim_protect(void* start, size_t size, bool protect) {
// Huge page allocation
//---------------------------------------------
#if (MI_INTPTR_SIZE >= 8) && !defined(__HAIKU__)
#if (MI_INTPTR_SIZE >= 8) && !defined(__HAIKU__) && !defined(__CYGWIN__)
#ifndef MPOL_PREFERRED
#define MPOL_PREFERRED 1