From c44f194a0f8c4323330a82b1890a368804e2aac4 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Tue, 11 Oct 2022 18:43:23 +0900 Subject: [PATCH] Ignore some items Signed-off-by: Yuki Okushi --- libc-test/build.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libc-test/build.rs b/libc-test/build.rs index 2fc7cc4540e0f..84d31b8cd86cd 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -1687,6 +1687,8 @@ fn test_android(target: &str) { // These are tested in the `linux_elf.rs` file. "Elf64_Phdr" | "Elf32_Phdr" => true, + "sockaddr_vm" => true, + _ => false, } }); @@ -1803,7 +1805,10 @@ fn test_android(target: &str) { // signalfd had SIGSYS fields added in Android 4.19, but CI does not have that version yet. (struct_ == "signalfd_siginfo" && (field == "ssi_syscall" || field == "ssi_call_addr" || - field == "ssi_arch")) + field == "ssi_arch")) || + // 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") }); cfg.skip_field(|struct_, field| {