Skip to content

Commit ae66724

Browse files
committed
mman: add MAP_STACK to openbsd which is needed to created stack mappings
1 parent bf4f273 commit ae66724

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
@@ -129,7 +129,7 @@ libc_bitflags!{
129129
#[cfg(any(target_os = "dragonfly", target_os = "freebsd", target_os = "netbsd", target_os = "openbsd"))]
130130
MAP_HASSEMAPHORE;
131131
/// Region grows down, like a stack.
132-
#[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux"))]
132+
#[cfg(any(target_os = "android", target_os = "dragonfly", target_os = "freebsd", target_os = "linux", target_os = "openbsd"))]
133133
MAP_STACK;
134134
/// Pages in this mapping are not retained in the kernel's memory cache.
135135
#[cfg(any(target_os = "ios", target_os = "macos"))]

0 commit comments

Comments
 (0)