Skip to content

Commit 602a223

Browse files
committed
uclibc: fix so mipsel-unknown-linux-uclibc passes libc-test
1 parent 80d8636 commit 602a223

File tree

3 files changed

+2
-5
lines changed

3 files changed

+2
-5
lines changed

src/unix/linux_like/linux/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1342,6 +1342,7 @@ pub const SHM_LOCK: ::c_int = 11;
13421342
pub const SHM_UNLOCK: ::c_int = 12;
13431343

13441344
pub const SHM_HUGETLB: ::c_int = 0o4000;
1345+
#[cfg(not(all(target_env = "uclibc", target_arch = "mips")))]
13451346
pub const SHM_NORESERVE: ::c_int = 0o10000;
13461347

13471348
pub const EPOLLRDHUP: ::c_int = 0x2000;
@@ -1587,6 +1588,7 @@ pub const IPV6_RTHDR_LOOSE: ::c_int = 0;
15871588
pub const IPV6_RTHDR_STRICT: ::c_int = 1;
15881589

15891590
pub const IUTF8: ::tcflag_t = 0x00004000;
1591+
#[cfg(not(all(target_env = "uclibc", target_arch = "mips")))]
15901592
pub const CMSPAR: ::tcflag_t = 0o10000000000;
15911593

15921594
pub const MFD_CLOEXEC: ::c_uint = 0x0001;

src/unix/linux_like/linux/uclibc/mips/mips32/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,6 @@ extern "C" {
638638
newlen: ::size_t,
639639
) -> ::c_int;
640640
pub fn ioctl(fd: ::c_int, request: ::c_ulong, ...) -> ::c_int;
641-
pub fn backtrace(buf: *mut *mut ::c_void, sz: ::c_int) -> ::c_int;
642641
pub fn glob64(
643642
pattern: *const ::c_char,
644643
flags: ::c_int,

src/unix/linux_like/linux/uclibc/mips/mod.rs

-4
Original file line numberDiff line numberDiff line change
@@ -309,13 +309,9 @@ pub const TIOCMSET: ::c_ulong = 0x741a;
309309
pub const FIONREAD: ::c_ulong = 0x467f;
310310
pub const TIOCCONS: ::c_ulong = 0x80047478;
311311

312-
pub const RTLD_DEEPBIND: ::c_int = 0x10;
313312
pub const RTLD_GLOBAL: ::c_int = 0x4;
314313
pub const RTLD_NOLOAD: ::c_int = 0x8;
315314

316-
317-
318-
319315
pub const SIGSTKSZ: ::size_t = 8192;
320316
pub const CBAUD: ::tcflag_t = 0o0010017;
321317
pub const TAB1: ::tcflag_t = 0x00000800;

0 commit comments

Comments
 (0)