Skip to content

Commit 61b9ff1

Browse files
committed
(lib/sleep_util) fix missing import
1 parent 1e776df commit 61b9ff1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ impl Thread {
408408
#[cfg(target_vendor = "apple")]
409409
const KERN_SUCCESS: libc::c_int = 0;
410410
#[cfg(target_vendor = "apple")]
411-
const KERN_SUCCESS: libc::c_int = 14;
411+
const KERN_ABORTED: libc::c_int = 14;
412412

413413
#[cfg(target_vendor = "apple")]
414414
#[repr(C)]

library/std/src/sys/pal/windows/thread.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::os::windows::io::{AsRawHandle, HandleOrNull};
88
use crate::sys::handle::Handle;
99
use crate::sys::{c, stack_overflow};
1010
use crate::sys_common::FromInner;
11-
use crate::time::Duration;
11+
use crate::time::{Duration, Instant};
1212
use crate::{io, ptr};
1313

1414
pub const DEFAULT_MIN_STACK_SIZE: usize = 2 * 1024 * 1024;

0 commit comments

Comments
 (0)