diff --git a/components/gfx/lib.rs b/components/gfx/lib.rs index 5ccf043d3b7..98b35d01731 100644 --- a/components/gfx/lib.rs +++ b/components/gfx/lib.rs @@ -8,9 +8,9 @@ #![feature(core)] #![feature(hash)] #![feature(int_uint)] -#![feature(io)] +#![cfg_attr(any(target_os="linux", target_os = "android"), feature(io))] #![feature(libc)] -#![feature(path)] +#![cfg_attr(any(target_os="linux", target_os = "android"), feature(path))] #![feature(plugin)] #![feature(rustc_private)] #![feature(std_misc)] diff --git a/ports/glutin/lib.rs b/ports/glutin/lib.rs index 4ac0a2c18aa..cb30d1c4fa5 100644 --- a/ports/glutin/lib.rs +++ b/ports/glutin/lib.rs @@ -6,7 +6,7 @@ #![feature(int_uint)] #![feature(core)] -#![feature(hash)] +#![cfg_attr(feature = "window", feature(hash))] #![feature(box_syntax)] #![feature(libc)]