diff options
author | gnzlbg <gonzalobg88@gmail.com> | 2018-01-18 17:05:59 +0100 |
---|---|---|
committer | gnzlbg <gonzalobg88@gmail.com> | 2018-01-18 17:05:59 +0100 |
commit | b2cfdf22f93c976674aef67c3d33c670a14db81c (patch) | |
tree | 57604275b3dc75e7bff451de348752d47b972084 | |
parent | f6b64f09c72f9b06b812a3553d5370b1c8532a23 (diff) | |
download | rust-libc-b2cfdf22f93c976674aef67c3d33c670a14db81c.tar.gz |
remove getauxval and malloc_usable_size from musl
-rw-r--r-- | src/unix/notbsd/linux/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
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, |