From 826032013673a3b31405481448096464cf46ceaf Mon Sep 17 00:00:00 2001 From: Folkert Date: Fri, 14 Oct 2022 14:49:02 +0200 Subject: [PATCH] omit ifr_ifru field from tests (because it is an anonymous union) --- libc-test/build.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 {