diff --git a/components/gfx/Cargo.toml b/components/gfx/Cargo.toml index 6350288e5903..d2636f441131 100644 --- a/components/gfx/Cargo.toml +++ b/components/gfx/Cargo.toml @@ -84,7 +84,7 @@ servo-fontconfig = "0.2" [target.arm-linux-androideabi.dependencies] servo-fontconfig = "0.2" -[target.x86_64-pc-windows-gnu.dependencies.fontconfig] +[target.x86_64-pc-windows-gnu.dependencies.servo-fontconfig] git = "https://github.com/servo/rust-fontconfig" [target.i686-unknown-linux-gnu.dependencies.freetype] diff --git a/components/servo/Cargo.lock b/components/servo/Cargo.lock index 13b74a9de9c1..693baf4b4094 100644 --- a/components/servo/Cargo.lock +++ b/components/servo/Cargo.lock @@ -899,6 +899,15 @@ dependencies = [ "rustc-serialize 0.3.16 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "kernel32-sys" +version = "0.1.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "winapi 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)", + "winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "kernel32-sys" version = "0.2.1" @@ -1637,6 +1646,15 @@ dependencies = [ "libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "servo-fontconfig" +version = "0.2.0" +source = "git+https://github.com/servo/rust-fontconfig#0dd4c4496295ac58ef2f8248d896b19a369767d4" +dependencies = [ + "libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", + "servo-fontconfig-sys 2.11.2-really.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "servo-fontconfig" version = "0.2.0" @@ -1961,6 +1979,7 @@ dependencies = [ "hyper 0.7.0 (registry+https://github.com/rust-lang/crates.io-index)", "ipc-channel 0.1.0 (git+https://github.com/servo/ipc-channel)", "js 0.1.1 (git+https://github.com/servo/rust-mozjs)", + "kernel32-sys 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "layers 0.2.0 (git+https://github.com/servo/rust-layers)", "lazy_static 0.1.15 (registry+https://github.com/rust-lang/crates.io-index)", "libc 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", diff --git a/components/util/workqueue.rs b/components/util/workqueue.rs index 2ed4ef1dbebd..c46039b60685 100644 --- a/components/util/workqueue.rs +++ b/components/util/workqueue.rs @@ -11,9 +11,8 @@ extern crate kernel32; use deque::{Abort, BufferPool, Data, Empty, Stealer, Worker}; -use libc::usleep; #[cfg(not(windows))] -use libc::funcs::posix88::unistd::usleep; +use libc::usleep; use rand::{Rng, XorShiftRng, weak_rng}; use std::sync::atomic::{AtomicUsize, Ordering}; use std::sync::mpsc::{Receiver, Sender, channel};