diff --git a/components/profile/Cargo.toml b/components/profile/Cargo.toml index ca7a2dc25cb..3a0e74321ca 100644 --- a/components/profile/Cargo.toml +++ b/components/profile/Cargo.toml @@ -15,7 +15,6 @@ util = {path = "../util"} ipc-channel = {git = "https://github.com/servo/ipc-channel"} hbs-pow = "0.2" log = "0.3.5" -libc = "0.2" serde = "0.7" serde_json = "0.7" serde_macros = "0.7" @@ -26,3 +25,6 @@ task_info = {path = "../../support/rust-task_info"} [target.'cfg(target_os = "linux")'.dependencies] regex = "0.1.55" + +[target.'cfg(not(target_os = "windows"))'.dependencies] +libc = "0.2" diff --git a/components/profile/lib.rs b/components/profile/lib.rs index eaea167644d..be6c2840ba1 100644 --- a/components/profile/lib.rs +++ b/components/profile/lib.rs @@ -17,6 +17,7 @@ extern crate alloc_jemalloc; extern crate hbs_pow; extern crate ipc_channel; +#[cfg(not(target_os = "windows"))] extern crate libc; #[macro_use] extern crate log;