summaryrefslogtreecommitdiff
path: root/src/sys/mman.rs
diff options
context:
space:
mode:
authorDavid Carlier <devnexen@gmail.com>2021-09-12 17:18:01 +0100
committerDavid Carlier <devnexen@gmail.com>2021-09-12 17:38:12 +0100
commitae66724f96986531db19a31b5b38ad9c2ff0b4b5 (patch)
tree1ba6c82037ae35434a47a52705ad156d05c18e69 /src/sys/mman.rs
parentbf4f2738c9b4ad2ec1a2277358f94240f69fb8c8 (diff)
downloadnix-ae66724f96986531db19a31b5b38ad9c2ff0b4b5.zip
mman: add MAP_STACK to openbsd which is needed to created stack mappings
Diffstat (limited to 'src/sys/mman.rs')
-rw-r--r--src/sys/mman.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sys/mman.rs b/src/sys/mman.rs
index 33ac21de..908900ca 100644
--- a/src/sys/mman.rs
+++ b/src/sys/mman.rs
@@ -129,7 +129,7 @@ libc_bitflags!{
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))]
MAP_HASSEMAPHORE;
/// Region grows down, like a stack.
- #[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))]
+ #[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "openbsd"))]
MAP_STACK;
/// Pages in this mapping are not retained in the kernel's memory cache.
#[cfg(any(target_os = "ios", target_os = "macos"))]