From d11d5a0cff4fbe8d09262c8507e0967176ec66da Mon Sep 17 00:00:00 2001 From: David Carlier Date: Sun, 19 Sep 2021 12:42:05 +0100 Subject: [PATCH] mman add MAP_CONCEAL mmap flag for openbsd --- src/sys/mman.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sys/mman.rs b/src/sys/mman.rs index e3c36208bf..0ceade7d2c 100644 --- a/src/sys/mman.rs +++ b/src/sys/mman.rs @@ -140,6 +140,9 @@ libc_bitflags!{ MAP_NOCACHE; #[cfg(any(target_os = "ios", target_os = "macos"))] MAP_JIT; + /// Pages will be discarded in the core dumps. + #[cfg(target_os = "openbsd")] + MAP_CONCEAL; } }