diff options
author | David Carlier <devnexen@gmail.com> | 2021-09-12 17:18:01 +0100 |
---|---|---|
committer | David Carlier <devnexen@gmail.com> | 2021-09-12 17:38:12 +0100 |
commit | ae66724f96986531db19a31b5b38ad9c2ff0b4b5 (patch) | |
tree | 1ba6c82037ae35434a47a52705ad156d05c18e69 /src/sys | |
parent | bf4f2738c9b4ad2ec1a2277358f94240f69fb8c8 (diff) | |
download | nix-ae66724f96986531db19a31b5b38ad9c2ff0b4b5.zip |
mman: add MAP_STACK to openbsd which is needed to created stack mappings
Diffstat (limited to 'src/sys')
-rw-r--r-- | src/sys/mman.rs | 2 |
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"))] |