Skip to content

Commit 7f05499

Browse files
committed
Platform gate libc in libtest
1 parent bf9bdef commit 7f05499

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libtest/lib.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,14 @@
3535
#![deny(warnings)]
3636

3737
#![feature(asm)]
38-
#![feature(libc)]
38+
#![cfg_attr(unix, feature(libc))]
3939
#![feature(set_stdio)]
4040
#![feature(panic_unwind)]
4141
#![feature(staged_api)]
4242

4343
extern crate getopts;
4444
extern crate term;
45+
#[cfg(unix)]
4546
extern crate libc;
4647
extern crate panic_unwind;
4748

0 commit comments

Comments
 (0)