aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Carlier <[email protected]>2019-05-15 20:04:19 +0100
committerDavid Carlier <[email protected]>2019-05-15 20:04:19 +0100
commite547facad97b44f0665ad9e704884f6b9db1cbff (patch)
tree10c6c0ef5a6888785ff14782f406596ea798d070 /src
parent7e5ff3146a427f0e82ba9591fcfa350553abf090 (diff)
OpenBSD MAP_CONCEAL new flag support
Diffstat (limited to 'src')
-rw-r--r--src/lib/utils/os_utils.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/utils/os_utils.cpp b/src/lib/utils/os_utils.cpp
index 3524777fc..394ccf13e 100644
--- a/src/lib/utils/os_utils.cpp
+++ b/src/lib/utils/os_utils.cpp
@@ -393,8 +393,12 @@ std::vector<void*> OS::allocate_locked_pages(size_t count)
#if defined(BOTAN_TARGET_OS_HAS_POSIX1) && defined(BOTAN_TARGET_OS_HAS_POSIX_MLOCK)
#if !defined(MAP_NOCORE)
+#if defined(MAP_CONCEAL)
+ #define MAP_NOCORE MAP_CONCEAL
+#else
#define MAP_NOCORE 0
#endif
+#endif
ptr = ::mmap(nullptr, 2*page_size,
PROT_READ | PROT_WRITE,