From b2cfdf22f93c976674aef67c3d33c670a14db81c Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Thu, 18 Jan 2018 17:05:59 +0100 Subject: remove getauxval and malloc_usable_size from musl --- src/unix/notbsd/linux/mod.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 060a31fb8b..a508242cf8 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs @@ -1379,6 +1379,7 @@ extern { len: ::off_t) -> ::c_int; pub fn readahead(fd: ::c_int, offset: ::off64_t, count: ::size_t) -> ::ssize_t; + #[cfg(not(target_env = "musl"))] pub fn getauxval(type_: ::c_ulong) -> ::c_ulong; pub fn getxattr(path: *const c_char, name: *const c_char, value: *mut ::c_void, size: ::size_t) -> ::ssize_t; @@ -1500,6 +1501,7 @@ extern { pub fn freeifaddrs(ifa: *mut ::ifaddrs); #[cfg(not(target_env = "musl"))] pub fn mallinfo() -> ::mallinfo; + #[cfg(not(target_env = "musl"))] pub fn malloc_usable_size(ptr: *const ::c_void) -> ::size_t; pub fn mremap(addr: *mut ::c_void, len: ::size_t, -- cgit v1.2.1