summaryrefslogtreecommitdiffstats
path: root/vendor/rustix/src/thread/clock.rs
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/rustix/src/thread/clock.rs')
-rw-r--r--vendor/rustix/src/thread/clock.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/vendor/rustix/src/thread/clock.rs b/vendor/rustix/src/thread/clock.rs
index 57672fa17..620cb4ec0 100644
--- a/vendor/rustix/src/thread/clock.rs
+++ b/vendor/rustix/src/thread/clock.rs
@@ -3,11 +3,10 @@ use crate::{backend, io};
pub use backend::time::types::Timespec;
#[cfg(not(any(
+ apple,
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11.
- target_os = "ios",
- target_os = "macos",
target_os = "openbsd",
target_os = "redox",
target_os = "wasi",
@@ -27,12 +26,11 @@ pub use backend::time::types::ClockId;
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
/// [Linux]: https://man7.org/linux/man-pages/man2/clock_nanosleep.2.html
#[cfg(not(any(
+ apple,
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11.
target_os = "haiku",
- target_os = "ios",
- target_os = "macos",
target_os = "openbsd",
target_os = "redox",
target_os = "wasi",
@@ -55,12 +53,11 @@ pub fn clock_nanosleep_relative(id: ClockId, request: &Timespec) -> NanosleepRel
/// [POSIX]: https://pubs.opengroup.org/onlinepubs/9699919799/functions/clock_nanosleep.html
/// [Linux]: https://man7.org/linux/man-pages/man2/clock_nanosleep.2.html
#[cfg(not(any(
+ apple,
target_os = "dragonfly",
target_os = "emscripten",
target_os = "freebsd", // FreeBSD 12 has clock_nanosleep, but libc targets FreeBSD 11.
target_os = "haiku",
- target_os = "ios",
- target_os = "macos",
target_os = "openbsd",
target_os = "redox",
target_os = "wasi",