Skip to content

Commit 219677c

Browse files
committed
Sync libc-test/build.rs with libc-0.2 where possible
1 parent 86b04cb commit 219677c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

libc-test/build.rs

+8-4
Original file line numberDiff line numberDiff line change
@@ -2608,6 +2608,7 @@ fn test_freebsd(target: &str) {
26082608
match name {
26092609
// This is introduced in FreeBSD 14.1
26102610
"execvpe" => true,
2611+
26112612
// The `uname` function in the `utsname.h` FreeBSD header is a C
26122613
// inline function (has no symbol) that calls the `__xuname` symbol.
26132614
// Therefore the function pointer comparison does not make sense for it.
@@ -3695,17 +3696,19 @@ fn test_linux(target: &str) {
36953696
if musl && (ty.ends_with("64") || ty.ends_with("64_t")) {
36963697
return true;
36973698
}
3699+
36983700
// FIXME: sparc64 CI has old headers
36993701
if sparc64 && (ty == "uinput_ff_erase" || ty == "uinput_abs_setup") {
37003702
return true;
37013703
}
3702-
// FIXME(https://github.com/rust-lang/libc/issues/1558): passing by
3703-
// value corrupts the value for reasons not understood.
3704+
3705+
// FIXME(#1558): passing by value corrupts the value for reasons not understood.
37043706
if (gnu && sparc64) && (ty == "ip_mreqn" || ty == "hwtstamp_config") {
37053707
return true;
37063708
}
3707-
// FIXME: pass by value for structs that are not an even 32/64 bits on
3708-
// big-endian systems corrupts the value for unknown reasons.
3709+
3710+
// FIXME(rust-lang/rust#43894): pass by value for structs that are not an even 32/64 bits
3711+
// on big-endian systems corrupts the value for unknown reasons.
37093712
if (sparc64 || ppc || ppc64 || s390x)
37103713
&& (ty == "sockaddr_pkt"
37113714
|| ty == "tpacket_auxdata"
@@ -3716,6 +3719,7 @@ fn test_linux(target: &str) {
37163719
{
37173720
return true;
37183721
}
3722+
37193723
// FIXME: musl doesn't compile with `struct fanout_args` for unknown reasons.
37203724
if musl && ty == "fanout_args" {
37213725
return true;

0 commit comments

Comments
 (0)