Skip to content

Commit

Permalink
Remove MAP_HUGETLB from mips-unknown-linux-uclibc
Browse files Browse the repository at this point in the history
  • Loading branch information
cactorium committed May 6, 2017
1 parent 96a8306 commit c0bec43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions libc-test/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
});
Expand Down
2 changes: 0 additions & 2 deletions src/unix/uclibc/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c0bec43

Please sign in to comment.