From 8f5f614615028ae336f91f98f04f1505577d93e7 Mon Sep 17 00:00:00 2001 From: "Erik M. Bray" Date: Tue, 6 Feb 2018 11:11:30 +0100 Subject: [PATCH] On Cygwin use mmap instead of Windows native allocation functions, which are not fork-safe. --- driver/others/memory.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/driver/others/memory.c b/driver/others/memory.c index b37ec2ff9..ecedd1fcc 100644 --- a/driver/others/memory.c +++ b/driver/others/memory.c @@ -74,7 +74,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include "common.h" #include -#ifdef OS_WINDOWS +#if defined(OS_WINDOWS) && !defined(OS_CYGWIN_NT) #define ALLOC_WINDOWS #ifndef MEM_LARGE_PAGES #define MEM_LARGE_PAGES 0x20000000 @@ -88,7 +88,7 @@ USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include #include -#ifndef OS_WINDOWS +#if !defined(OS_WINDOWS) || defined(OS_CYGWIN_NT) #include #ifndef NO_SYSV_IPC #include