From b0003cb10107642456f17284b543ba53241ccb71 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 14 Aug 2019 15:07:13 +0100 Subject: [PATCH] linux build correction MAP_HUGE_2MB is linux specific and the related header is not automatically included. --- src/os.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/os.c b/src/os.c index d7fb38f9..9349019d 100644 --- a/src/os.c +++ b/src/os.c @@ -21,6 +21,9 @@ terms of the MIT license. A copy of the license can be found in the file #else #include // mmap #include // sysconf +#if defined(__linux__) +#include // linux mmap flags +#endif #if defined(__APPLE__) #include #endif