diff --git a/libc-test/build.rs b/libc-test/build.rs index a53dcfebcc3e5..d5bf3ea61ba39 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -3480,7 +3480,9 @@ fn test_linux(target: &str) { (struct_ == "user_fpsimd_struct" && field == "vregs") || // Linux >= 5.11 tweaked the `svm_zero` field of the `sockaddr_vm` struct. // https://github.com/torvalds/linux/commit/dc8eeef73b63ed8988224ba6b5ed19a615163a7f - (struct_ == "sockaddr_vm" && field == "svm_zero") + (struct_ == "sockaddr_vm" && field == "svm_zero") || + // the `ifr_ifru` field is an anonymous union + (struct_ == "ifreq" && field == "ifr_ifru") }); cfg.skip_roundtrip(move |s| match s {