Skip to content

Commit 6871594

Browse files
committed
libc-test: remove workarounds for musl <1.2.3
This commit removes various workarounds for now unsupported versions of musl libc, such as missing functions.
1 parent 88d427e commit 6871594

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

libc-test/build.rs

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4218,12 +4218,6 @@ fn test_linux(target: &str) {
42184218
if loongarch64 && (name == "MFD_NOEXEC_SEAL" || name == "MFD_EXEC") {
42194219
return true;
42204220
}
4221-
// FIXME(musl): Requires musl >= 1.2
4222-
if name == "SO_PREFER_BUSY_POLL"
4223-
|| name == "SO_BUSY_POLL_BUDGET"
4224-
{
4225-
return true;
4226-
}
42274221
// FIXME(musl): Not in musl yet
42284222
if name == "SO_NETNS_COOKIE"
42294223
|| name == "SO_BUF_LOCK"
@@ -4640,20 +4634,12 @@ fn test_linux(target: &str) {
46404634
// assume it's a int instead.
46414635
"getnameinfo" if uclibc => true,
46424636

4643-
// FIXME(musl): This needs musl 1.2.2 or later.
4644-
"gettid" if musl => true,
4645-
46464637
// Needs glibc 2.33 or later.
46474638
"mallinfo2" => true,
46484639

4649-
"reallocarray" if musl => true,
4650-
46514640
// Not defined in uclibc as of 1.0.34
46524641
"gettid" if uclibc => true,
46534642

4654-
// Needs musl 1.2.3 or later.
4655-
"pthread_getname_np" if musl => true,
4656-
46574643
// pthread_sigqueue uses sigval, which was initially declared
46584644
// as a struct but should be defined as a union. However due
46594645
// to the issues described here: https://github.com/rust-lang/libc/issues/2816

0 commit comments

Comments
 (0)