Skip to content

Commit c0bec43

Browse files
committed
Remove MAP_HUGETLB from mips-unknown-linux-uclibc
1 parent 96a8306 commit c0bec43

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

libc-test/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -398,11 +398,11 @@ fn main() {
398398
"KERN_KDENABLE_BG_TRACE" if apple => true,
399399
"KERN_KDDISABLE_BG_TRACE" if apple => true,
400400

401-
// not entirely sure why these don't work...
401+
// These are either unimplemented or optionally built into uClibc
402402
"LC_CTYPE_MASK" | "LC_NUMERIC_MASK" | "LC_TIME_MASK" | "LC_COLLATE_MASK" | "LC_MONETARY_MASK" | "LC_MESSAGES_MASK" |
403403
"MADV_MERGEABLE" | "MADV_UNMERGEABLE" | "MADV_HWPOISON" | "IPV6_ADD_MEMBERSHIP" | "IPV6_DROP_MEMBERSHIP" | "IPV6_MULTICAST_LOOP" | "IPV6_V6ONLY" |
404-
"MAP_STACK" | "RTLD_DEEPBIND" | "MAP_HUGETLB" |
405-
"SOL_IPV6" | "SOL_ICMPV6" if uclibc => true,
404+
"MAP_STACK" | "RTLD_DEEPBIND" | "SOL_IPV6" | "SOL_ICMPV6" if uclibc => true,
405+
406406
_ => false,
407407
}
408408
});

src/unix/uclibc/mips/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -323,8 +323,6 @@ pub const PTRACE_SETFPXREGS: ::c_uint = 19;
323323
pub const PTRACE_GETREGS: ::c_uint = 12;
324324
pub const PTRACE_SETREGS: ::c_uint = 13;
325325

326-
pub const MAP_HUGETLB: ::c_int = 0x080000;
327-
328326
pub const EFD_NONBLOCK: ::c_int = 0x80;
329327

330328
pub const F_GETLK: ::c_int = 14;

0 commit comments

Comments
 (0)