From d28f4df8e21aaf868fec9e637994e1e361253a6b Mon Sep 17 00:00:00 2001 From: rofl0r Date: Thu, 21 Dec 2017 16:30:17 +0000 Subject: [PATCH] allocator_thread.c: define _DARWIN_C_SOURCE so we get MAP_ANON https://github.com/nneonneo/osx-10.9-opensource/blob/master/xnu-2422.1.72/bsd/sys/mman.h#L142 https://opensource.apple.com/source/xnu/xnu-344/bsd/sys/mman.h --- src/allocator_thread.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/allocator_thread.c b/src/allocator_thread.c index f9b2c91..cb4e987 100644 --- a/src/allocator_thread.c +++ b/src/allocator_thread.c @@ -2,6 +2,7 @@ #define _GNU_SOURCE #undef _POSIX_C_SOURCE #define _POSIX_C_SOURCE 200809L +#define _DARWIN_C_SOURCE #include #include #include