diff --git a/components/style/lib.rs b/components/style/lib.rs index 6d576c842de..35b1ba0a1ce 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -62,7 +62,7 @@ extern crate heapsize; #[allow(unused_extern_crates)] #[macro_use] extern crate lazy_static; -extern crate libc; +#[cfg(feature = "gecko")] extern crate libc; #[macro_use] extern crate log; #[allow(unused_extern_crates)]