summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/time/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/time/mod.rs')
-rw-r--r--vendor/rustix/src/time/mod.rs6
1 files changed, 2 insertions, 4 deletions
diff --git a/vendor/rustix/src/time/mod.rs b/vendor/rustix/src/time/mod.rs
index 9a0dcb4d7..c633e767f 100644
--- a/vendor/rustix/src/time/mod.rs
+++ b/vendor/rustix/src/time/mod.rs
@@ -1,13 +1,11 @@
//! Time-related operations.
mod clock;
-#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
-#[cfg(feature = "time")]
+#[cfg(any(linux_kernel, target_os = "fuchsia"))]
mod timerfd;
// TODO: Convert WASI'S clock APIs to use handles rather than ambient clock
// identifiers, update `wasi-libc`, and then add support in `rustix`.
pub use clock::*;
-#[cfg(any(target_os = "android", target_os = "fuchsia", target_os = "linux"))]
-#[cfg(feature = "time")]
+#[cfg(any(linux_kernel, target_os = "fuchsia"))]
pub use timerfd::*;