diff options
Diffstat (limited to 'vendor/is-terminal/src/lib.rs')
-rw-r--r-- | vendor/is-terminal/src/lib.rs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/vendor/is-terminal/src/lib.rs b/vendor/is-terminal/src/lib.rs index e68e60ffa..56810b7d9 100644 --- a/vendor/is-terminal/src/lib.rs +++ b/vendor/is-terminal/src/lib.rs @@ -27,10 +27,10 @@ #![cfg_attr(unix, no_std)] -#[cfg(not(any(windows, target_os = "unknown")))] +#[cfg(not(any(windows, target_os = "hermit", target_os = "unknown")))] use rustix::fd::AsFd; #[cfg(target_os = "hermit")] -use std::os::hermit::io::AsRawFd; +use std::os::hermit::io::AsFd; #[cfg(windows)] use std::os::windows::io::{AsHandle, AsRawHandle, BorrowedHandle}; #[cfg(windows)] @@ -80,7 +80,8 @@ impl<Stream: AsFd> IsTerminal for Stream { #[cfg(target_os = "hermit")] { - hermit_abi::isatty(self.as_fd().as_raw_fd()) + use std::os::hermit::io::AsRawFd; + hermit_abi::isatty(self.as_fd().as_fd().as_raw_fd()) } } } |