diff --git a/src/backend/libc/time/syscalls.rs b/src/backend/libc/time/syscalls.rs index 6b1c9fd03..97eae5fd7 100644 --- a/src/backend/libc/time/syscalls.rs +++ b/src/backend/libc/time/syscalls.rs @@ -167,8 +167,8 @@ pub(crate) fn clock_gettime_dynamic(id: DynamicClockId<'_>) -> io::Result c::CLOCK_TAI, #[cfg(any( - freebsdlike, linux_kernel, + target_os = "freebsd", target_os = "fuchsia", target_os = "openbsd" ))] diff --git a/src/backend/linux_raw/reg.rs b/src/backend/linux_raw/reg.rs index 10f95a5f9..f05ac5f3c 100644 --- a/src/backend/linux_raw/reg.rs +++ b/src/backend/linux_raw/reg.rs @@ -45,6 +45,7 @@ pub(super) trait FromAsm: private::Sealed { /// pointer types. They need a type to point to, so we define a custom private /// type, to prevent it from being used for anything else. #[repr(transparent)] +#[allow(dead_code)] pub(super) struct Opaque(c::c_void); // Argument numbers. diff --git a/src/clockid.rs b/src/clockid.rs index b392d6a14..1c7deeb9e 100644 --- a/src/clockid.rs +++ b/src/clockid.rs @@ -149,8 +149,8 @@ pub enum DynamicClockId<'a> { /// `CLOCK_BOOTTIME` #[cfg(any( - freebsdlike, linux_kernel, + target_os = "freebsd", target_os = "fuchsia", target_os = "openbsd" ))] diff --git a/tests/time/clocks.rs b/tests/time/clocks.rs index 9d4adc0d4..d7ed39f56 100644 --- a/tests/time/clocks.rs +++ b/tests/time/clocks.rs @@ -8,8 +8,8 @@ use rustix::time::{clock_gettime, ClockId}; /// Attempt to test that the boot clock is monotonic. Time may or may not /// advance, but it shouldn't regress. #[cfg(any( - freebsdlike, linux_kernel, + target_os = "freebsd", target_os = "fuchsia", target_os = "openbsd" ))]