Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit dbf328d

Browse files
benbrittaingnzlbg
authored andcommitted
Makes Fuchsia not a Unix
1 parent f93240e commit dbf328d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libtest/lib.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//! Rust's built-in unit-test and micro-benchmarking framework.
2-
#![cfg_attr(any(unix, target_os = "cloudabi"), feature(libc, rustc_private))]
2+
#![cfg_attr(any(unix, target_os = "cloudabi", target_os = "fuchsia"), feature(libc, rustc_private))]
33
#![feature(fnbox)]
44
#![feature(set_stdio)]
55
#![feature(panic_unwind)]
@@ -17,7 +17,7 @@ use getopts;
1717

1818
extern crate test;
1919

20-
#[cfg(any(unix, target_os = "cloudabi"))]
20+
#[cfg(any(unix, target_os = "cloudabi", target_os = "fuchsia"))]
2121
extern crate libc;
2222

2323
// FIXME(#54291): rustc and/or LLVM don't yet support building with panic-unwind
@@ -1039,7 +1039,7 @@ fn stdout_isatty() -> bool {
10391039
// FIXME: Implement isatty on Redox and SGX
10401040
false
10411041
}
1042-
#[cfg(unix)]
1042+
#[cfg(any(unix, target_os = "fuchsia"))]
10431043
fn stdout_isatty() -> bool {
10441044
unsafe { libc::isatty(libc::STDOUT_FILENO) != 0 }
10451045
}

0 commit comments

Comments
 (0)