aboutsummaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-12-01 23:48:53 +0100
committerJan Beich <jbeich@FreeBSD.org>2023-12-02 00:25:50 +0100
commit6ab3d70252e69aa808ba7539b5ea2bc4a7d8eedd (patch)
tree7af6a74a330bc58ac95f7506f6de9b277352f7d7 /src/common
parent40e6a2c1d2eac6c8e1587249fcaba6b45975f42d (diff)
host_memory: allow missing MAP_NORESERVE on FreeBSD after de66cf5637ab
src/common/host_memory.cpp:408:47: error: use of undeclared identifier 'MAP_NORESERVE' MAP_PRIVATE | MAP_ANONYMOUS | MAP_NORESERVE, -1, 0); ^
Diffstat (limited to 'src/common')
-rw-r--r--src/common/host_memory.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 3a9ea6eb4f..179f6ab118 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -25,6 +25,10 @@
#include <unistd.h>
#include "common/scope_exit.h"
+#ifndef MAP_NORESERVE
+#define MAP_NORESERVE 0
+#endif
+
#endif // ^^^ Linux ^^^
#include <mutex>