summaryrefslogtreecommitdiff
path: root/src/common/host_memory.cpp
diff options
context:
space:
mode:
authorGravatar Jan Beich2023-12-01 23:48:53 +0100
committerGravatar Jan Beich2023-12-02 00:25:50 +0100
commit270d290e65d1c4d6e65824d20ec7f0174047f7a6 (patch)
tree7af6a74a330bc58ac95f7506f6de9b277352f7d7 /src/common/host_memory.cpp
parentMerge pull request #12243 from zhaobot/tx-update-20231201021513 (diff)
downloadyuzu-270d290e65d1c4d6e65824d20ec7f0174047f7a6.tar.gz
yuzu-270d290e65d1c4d6e65824d20ec7f0174047f7a6.tar.xz
yuzu-270d290e65d1c4d6e65824d20ec7f0174047f7a6.zip
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); ^
Diffstat (limited to '')
-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 3a9ea6eb4..179f6ab11 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -25,6 +25,10 @@
25#include <unistd.h> 25#include <unistd.h>
26#include "common/scope_exit.h" 26#include "common/scope_exit.h"
27 27
28#ifndef MAP_NORESERVE
29#define MAP_NORESERVE 0
30#endif
31
28#endif // ^^^ Linux ^^^ 32#endif // ^^^ Linux ^^^
29 33
30#include <mutex> 34#include <mutex>