mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Remove unused libc dependency for windows in style
This commit is contained in:
parent
7a7bdf51ad
commit
ca3174f6f6
3 changed files with 6 additions and 5 deletions
|
@ -11,10 +11,10 @@
|
|||
|
||||
#[cfg(windows)]
|
||||
extern crate kernel32;
|
||||
#[cfg(not(windows))]
|
||||
extern crate libc;
|
||||
|
||||
use deque::{self, Abort, Data, Empty, Stealer, Worker};
|
||||
#[cfg(not(windows))]
|
||||
use libc::usleep;
|
||||
use rand::{Rng, XorShiftRng, weak_rng};
|
||||
use std::sync::atomic::{AtomicUsize, Ordering};
|
||||
use std::sync::mpsc::{Receiver, Sender, channel};
|
||||
|
@ -90,7 +90,7 @@ const BACKOFFS_UNTIL_CONTROL_CHECK: u32 = 6;
|
|||
#[cfg(not(windows))]
|
||||
fn sleep_microseconds(usec: u32) {
|
||||
unsafe {
|
||||
usleep(usec);
|
||||
libc::usleep(usec);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue