diff options
author | Xidorn Quan <me@upsuper.org> | 2016-08-04 10:09:34 +1000 |
---|---|---|
committer | Xidorn Quan <me@upsuper.org> | 2016-08-04 10:09:34 +1000 |
commit | ca3174f6f6a909ef3e5effdf416b6725f764c557 (patch) | |
tree | 58bb282c77b56b67db7ea2101c483a3a9b52e92e /components/style/workqueue.rs | |
parent | 7a7bdf51adc3c5051f93c8044797c8fcaf89953c (diff) | |
download | servo-ca3174f6f6a909ef3e5effdf416b6725f764c557.tar.gz servo-ca3174f6f6a909ef3e5effdf416b6725f764c557.zip |
Remove unused libc dependency for windows in style
Diffstat (limited to 'components/style/workqueue.rs')
-rw-r--r-- | components/style/workqueue.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/components/style/workqueue.rs b/components/style/workqueue.rs index acee9faf5f8..0d2da58e93d 100644 --- a/components/style/workqueue.rs +++ b/components/style/workqueue.rs @@ -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); } } |