File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 2020#![ deny( warnings) ]
2121
2222#![ feature( box_syntax) ]
23- #![ feature( libc) ]
23+ #![ cfg_attr ( unix , feature( libc) ) ]
2424#![ feature( quote) ]
2525#![ feature( rustc_diagnostic_macros) ]
2626#![ feature( set_stdio) ]
@@ -29,6 +29,7 @@ extern crate arena;
2929extern crate getopts;
3030extern crate graphviz;
3131extern crate env_logger;
32+ #[ cfg( unix) ]
3233extern crate libc;
3334extern crate rustc;
3435extern crate rustc_allocator;
Original file line number Diff line number Diff line change 1616#![ feature( custom_attribute) ]
1717#![ allow( unused_attributes) ]
1818#![ feature( range_contains) ]
19- #![ feature( libc) ]
19+ #![ cfg_attr ( unix , feature( libc) ) ]
2020#![ feature( conservative_impl_trait) ]
2121
2222extern crate term;
23+ #[ cfg( unix) ]
2324extern crate libc;
2425extern crate serialize as rustc_serialize;
2526extern crate syntax_pos;
Original file line number Diff line number Diff line change 1414
1515#![ deny( warnings) ]
1616
17+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
1718extern crate libc;
1819extern crate test;
1920extern crate getopts;
You can’t perform that action at this time.
0 commit comments