From 270d290e65d1c4d6e65824d20ec7f0174047f7a6 Mon Sep 17 00:00:00 2001 From: Jan Beich Date: Fri, 1 Dec 2023 23:48:53 +0100 Subject: host_memory: allow missing MAP_NORESERVE on FreeBSD after 448d4815dece src/common/host_memory.cpp:408:47: error: use of undeclared identifier 'MAP_NORESERVE' MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); ^ --- src/common/host_memory.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/common') diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp index 3a9ea6eb4..179f6ab11 100644 --- a/src/common/host_memory.cpp +++ b/src/common/host_memory.cpp @@ -25,6 +25,10 @@ #include #include "common/scope_exit.h" +#ifndef MAP_NORESERVE +#define MAP_NORESERVE 0 +#endif + #endif // ^^^ Linux ^^^ #include -- cgit v1.2.3