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

Makes Fuchsia not a Unix #12

Merged
merged 1 commit into from
Apr 10, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions libtest/lib.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
//! Rust's built-in unit-test and micro-benchmarking framework.
#![cfg_attr(any(unix, target_os = "cloudabi"), feature(libc, rustc_private))]
#![cfg_attr(any(unix, target_os = "cloudabi", target_os = "fuchsia"), feature(libc, rustc_private))]
#![feature(fnbox)]
#![feature(set_stdio)]
#![feature(panic_unwind)]
Expand All @@ -17,7 +17,7 @@ use getopts;

extern crate test;

#[cfg(any(unix, target_os = "cloudabi"))]
#[cfg(any(unix, target_os = "cloudabi", target_os = "fuchsia"))]
extern crate libc;

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