summaryrefslogtreecommitdiff
path: root/libc-test/build.rs
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2022-01-22 08:13:30 -0500
committerTamir Duberstein <tamird@google.com>2022-01-23 15:52:27 -0500
commitda84eefd712167bac47c904de3ac6056521c7f18 (patch)
tree359f7003b61054b27e70b35e7dcf30c14152d427 /libc-test/build.rs
parent8bba79c467c81073a9da736d00239f6dd70fc32b (diff)
downloadrust-libc-da84eefd712167bac47c904de3ac6056521c7f18.tar.gz
Define ip_mreqn on all Linux platforms
Updates #1558.
Diffstat (limited to 'libc-test/build.rs')
-rw-r--r--libc-test/build.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/libc-test/build.rs b/libc-test/build.rs
index 69231fc060..1820080051 100644
--- a/libc-test/build.rs
+++ b/libc-test/build.rs
@@ -2967,6 +2967,11 @@ fn test_linux(target: &str) {
if (musl || sparc64) && ty.starts_with("uinput_") {
return true;
}
+ // FIXME(https://github.com/rust-lang/libc/issues/1558): passing by
+ // value corrupts the value for reasons not understood.
+ if (gnu && sparc64) && ty == "ip_mreqn" {
+ return true;
+ }
match ty {
// These cannot be tested when "resolv.h" is included and are tested
// in the `linux_elf.rs` file.