Skip to content

Commit

Permalink
sys::mman: enables MAP_STACK flag for netbsd too.
Browse files Browse the repository at this point in the history
Same status as Linux, a no-op, be in the future can be useful
for architectures which need this feature.
  • Loading branch information
devnexen committed Oct 23, 2024
1 parent b91bf39 commit d8a1900
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/sys/mman.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ libc_bitflags! {
#[cfg(any(freebsdlike, netbsdlike))]
MAP_HASSEMAPHORE;
/// Region grows down, like a stack.
#[cfg(any(linux_android, freebsdlike, target_os = "openbsd"))]
#[cfg(any(linux_android, freebsdlike, netbsdlike))]
MAP_STACK;
/// Do not write through the page caches, write directly to the file. Used for Direct Access (DAX) enabled file systems.
// Available on Linux glibc and musl, MIPS* target excluded.
Expand Down

0 comments on commit d8a1900

Please sign in to comment.