Skip to content

Commit 70f8fe0

Browse files
authored
sys::mman: enables MAP_STACK flag for netbsd too. (#2526)
* sys::mman: enables MAP_STACK flag for netbsd too. Same status as Linux, a no-op, but in the future can be useful for architectures which need this feature. * changelog entry
1 parent b91bf39 commit 70f8fe0

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

changelog/2526.added.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add `MapFlags::MAP_STACK` in `sys::man` for netbsd

src/sys/mman.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ libc_bitflags! {
143143
#[cfg(any(freebsdlike, netbsdlike))]
144144
MAP_HASSEMAPHORE;
145145
/// Region grows down, like a stack.
146-
#[cfg(any(linux_android, freebsdlike, target_os = "openbsd"))]
146+
#[cfg(any(linux_android, freebsdlike, netbsdlike))]
147147
MAP_STACK;
148148
/// Do not write through the page caches, write directly to the file. Used for Direct Access (DAX) enabled file systems.
149149
// Available on Linux glibc and musl, MIPS* target excluded.

0 commit comments

Comments
 (0)