Skip to content

Commit cd69658

Browse files
committed
uclibc does not have mlock2
1 parent 55c44a2 commit cd69658

File tree

1 file changed

+1
-0
lines changed
  • src/unix/linux_like/linux

1 file changed

+1
-0
lines changed

src/unix/linux_like/linux/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3534,6 +3534,7 @@ extern "C" {
35343534
pub fn seekdir(dirp: *mut ::DIR, loc: ::c_long);
35353535

35363536
pub fn telldir(dirp: *mut ::DIR) -> ::c_long;
3537+
#[cfg(not(target_env = "uclibc"))]
35373538
pub fn mlock2(addr: *const ::c_void, len: ::size_t, flags: ::c_uint) -> ::c_int;
35383539
pub fn madvise(addr: *mut ::c_void, len: ::size_t, advice: ::c_int) -> ::c_int;
35393540

0 commit comments

Comments
 (0)