Skip to content

Commit 1344803

Browse files
authored
Update sleep_until function configuration for Fuchsia
1 parent 2ff3750 commit 1344803

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

library/std/src/sys/thread/unix.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -731,7 +731,7 @@ pub fn sleep_until(deadline: crate::time::Instant) {
731731
}
732732
}
733733

734-
#[cfg(target_vendor = "apple")]
734+
#[cfg(any(target_vendor = "apple", target_os = "fuchsia"))]
735735
pub fn sleep_until(deadline: crate::time::Instant) {
736736
unsafe extern "C" {
737737
// This is defined in the public header mach/mach_time.h alongside

0 commit comments

Comments
 (0)