diff options
Diffstat (limited to 'library/std/src/os/mod.rs')
| -rw-r--r-- | library/std/src/os/mod.rs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/library/std/src/os/mod.rs b/library/std/src/os/mod.rs index 7e333e2b778..fc684f0912f 100644 --- a/library/std/src/os/mod.rs +++ b/library/std/src/os/mod.rs @@ -48,7 +48,12 @@ cfg_if::cfg_if! { #[cfg(all(target_vendor = "fortanix", target_env = "sgx"))] pub mod fortanix_sgx; - #[cfg(any(unix, target_os = "hermit"))] + #[cfg(target_os = "hermit")] + mod hermit; + #[cfg(target_os = "hermit")] + pub use hermit as unix; + + #[cfg(unix)] #[stable(feature = "rust1", since = "1.0.0")] pub use crate::sys::ext as unix; #[cfg(target_os = "android")] |
