diff options
author | Kelvin Ly <kelvin.ly1618@gmail.com> | 2017-05-06 02:49:54 -0400 |
---|---|---|
committer | Kelvin Ly <kelvin.ly1618@gmail.com> | 2017-05-06 02:49:54 -0400 |
commit | c0bec4323461676b6d89ced98c8bf61dc81ad272 (patch) | |
tree | 45a84cf1e6aab65209c6bddf60b0a2d9e5baf0e0 | |
parent | 96a830648dfa7de6fd36e887b45b3e462ccf93bf (diff) | |
download | rust-libc-c0bec4323461676b6d89ced98c8bf61dc81ad272.tar.gz |
Remove MAP_HUGETLB from mips-unknown-linux-uclibc
-rw-r--r-- | libc-test/build.rs | 6 | ||||
-rw-r--r-- | src/unix/uclibc/mips/mod.rs | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs index 04f205755e..cda20520d4 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -398,11 +398,11 @@ fn main() { "KERN_KDENABLE_BG_TRACE" if apple => true, "KERN_KDDISABLE_BG_TRACE" if apple => true, - // not entirely sure why these don't work... + // These are either unimplemented or optionally built into uClibc "LC_CTYPE_MASK" | "LC_NUMERIC_MASK" | "LC_TIME_MASK" | "LC_COLLATE_MASK" | "LC_MONETARY_MASK" | "LC_MESSAGES_MASK" | "MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" | - "MAP_STACK" | "RTLD_DEEPBIND" | "MAP_HUGETLB" | - "SOL_IPV6" | "SOL_ICMPV6" if uclibc => true, + "MAP_STACK" | "RTLD_DEEPBIND" | "SOL_IPV6" | "SOL_ICMPV6" if uclibc => true, + _ => false, } }); diff --git a/src/unix/uclibc/mips/mod.rs b/src/unix/uclibc/mips/mod.rs index c32760df7c..cc3ddf254d 100644 --- a/src/unix/uclibc/mips/mod.rs +++ b/src/unix/uclibc/mips/mod.rs @@ -323,8 +323,6 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19; pub const PTRACE_GETREGS: ::c_uint = 12; pub const PTRACE_SETREGS: ::c_uint = 13; -pub const MAP_HUGETLB: ::c_int = 0x080000; - pub const EFD_NONBLOCK: ::c_int = 0x80; pub const F_GETLK: ::c_int = 14; |