about summary refs log tree commit diff
path: root/library/std/src/sys/unix/time.rs
diff options
context:
space:
mode:
authorVladimir Michael Eatwell <dimir@fb.com>2022-03-23 16:05:01 +0000
committerVladimir Michael Eatwell <dimir@fb.com>2022-07-20 08:57:36 +0100
commit439d64a83c84fe36befacc4af867eaadb96589d5 (patch)
tree18b420b8abf27c5511e8d1bee7fbfc1a715f3799 /library/std/src/sys/unix/time.rs
parentc3605f8c8020dbbe8f0d1961c7b33c4c4b78ad0d (diff)
downloadrust-439d64a83c84fe36befacc4af867eaadb96589d5.tar.gz
rust-439d64a83c84fe36befacc4af867eaadb96589d5.zip
Library changes for Apple WatchOS
Diffstat (limited to 'library/std/src/sys/unix/time.rs')
-rw-r--r--library/std/src/sys/unix/time.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/library/std/src/sys/unix/time.rs b/library/std/src/sys/unix/time.rs
index d114af49d26..dff973f59d1 100644
--- a/library/std/src/sys/unix/time.rs
+++ b/library/std/src/sys/unix/time.rs
@@ -141,7 +141,7 @@ impl From<libc::timespec> for Timespec {
     }
 }
 
-#[cfg(any(target_os = "macos", target_os = "ios"))]
+#[cfg(any(target_os = "macos", target_os = "ios", target_os = "watchos"))]
 mod inner {
     use crate::sync::atomic::{AtomicU64, Ordering};
     use crate::sys::cvt;
@@ -257,7 +257,7 @@ mod inner {
     }
 }
 
-#[cfg(not(any(target_os = "macos", target_os = "ios")))]
+#[cfg(not(any(target_os = "macos", target_os = "ios", target_os = "watchos")))]
 mod inner {
     use crate::fmt;
     use crate::mem::MaybeUninit;