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 20
20
#![ deny( warnings) ]
21
21
22
22
#![ feature( box_syntax) ]
23
- #![ feature( libc) ]
23
+ #![ cfg_attr ( unix , feature( libc) ) ]
24
24
#![ feature( quote) ]
25
25
#![ feature( rustc_diagnostic_macros) ]
26
26
#![ feature( set_stdio) ]
@@ -29,6 +29,7 @@ extern crate arena;
29
29
extern crate getopts;
30
30
extern crate graphviz;
31
31
extern crate env_logger;
32
+ #[ cfg( unix) ]
32
33
extern crate libc;
33
34
extern crate rustc;
34
35
extern crate rustc_allocator;
Original file line number Diff line number Diff line change 16
16
#![ feature( custom_attribute) ]
17
17
#![ allow( unused_attributes) ]
18
18
#![ feature( range_contains) ]
19
- #![ feature( libc) ]
19
+ #![ cfg_attr ( unix , feature( libc) ) ]
20
20
#![ feature( conservative_impl_trait) ]
21
21
22
22
extern crate term;
23
+ #[ cfg( unix) ]
23
24
extern crate libc;
24
25
extern crate serialize as rustc_serialize;
25
26
extern crate syntax_pos;
Original file line number Diff line number Diff line change 14
14
15
15
#![ deny( warnings) ]
16
16
17
+ #[ cfg( any( target_os = "macos" , target_os = "ios" ) ) ]
17
18
extern crate libc;
18
19
extern crate test;
19
20
extern crate getopts;
You can’t perform that action at this time.
0 commit comments