From 9accf84280732c31cc3ff02d6791cbefc4f27112 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 15 Jun 2024 04:42:06 +0900 Subject: [PATCH 1/2] fix: Allow dead_code lint --- src/lib.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 0fbc79d7fa3d0..1fe44ce6eef08 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -12,6 +12,10 @@ redundant_semicolons, unused_macros, unused_macro_rules, + // FIXME: temporarily allow dead_code to fix CI: + // - https://github.com/rust-lang/libc/issues/3740 + // - https://github.com/rust-lang/rust/pull/126456 + dead_code, )] #![cfg_attr(libc_deny_warnings, deny(warnings))] // Attributes needed when building as part of the standard library From a31e0065c9af29791b78d78c1b4c953852cb1806 Mon Sep 17 00:00:00 2001 From: Yuki Okushi Date: Sat, 15 Jun 2024 04:48:41 +0900 Subject: [PATCH 2/2] Skip tests for `CLOCK_BOOTTIME` --- libc-test/build.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libc-test/build.rs b/libc-test/build.rs index 2da148caa61ba..29636554bd5e3 100644 --- a/libc-test/build.rs +++ b/libc-test/build.rs @@ -2409,6 +2409,9 @@ fn test_freebsd(target: &str) { // FIXME: Removed in FreeBSD 15: "LOCAL_CONNWAIT" => true, + // FIXME: The values has been changed in FreeBSD 15: + "CLOCK_BOOTTIME" if Some(15) <= freebsd_ver => true, + _ => false, } });