Skip to content

Commit d8a1900

Browse files
committed
sys::mman: enables MAP_STACK flag for netbsd too.
Same status as Linux, a no-op, be in the future can be useful for architectures which need this feature.
1 parent b91bf39 commit d8a1900

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)