Skip to content

Commit dd06d7e

Browse files
author
Al Hoang
committed
haiku: no munlockall
1 parent 9c17271 commit dd06d7e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/sys/mman.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -404,6 +404,7 @@ pub fn mlockall(flags: MlockAllFlags) -> Result<()> {
404404
/// For more information, see [`munlockall(2)`].
405405
///
406406
/// [`munlockall(2)`]: https://man7.org/linux/man-pages/man2/munlockall.2.html
407+
#[cfg(not(target_os = "haiku"))]
407408
pub fn munlockall() -> Result<()> {
408409
unsafe { Errno::result(libc::munlockall()) }.map(drop)
409410
}

0 commit comments

Comments
 (0)