diff options
author | Patrick Mooney <pmooney@pfmooney.com> | 2020-05-11 15:23:49 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-11 22:23:49 +0200 |
commit | 67220eac37b77abb29cab693083694686c487d5f (patch) | |
tree | ff7e33cc3d3c9493931db7dee47e190658f0f781 /tokio/src/net/unix | |
parent | 3ba818a177a34dabd38c01a7a1aa15a5bc867c1f (diff) |
tokio: add support for illumos target (#2486)
Although very similar in many regards, illumos and Solaris have been
diverging since the end of OpenSolaris. With the addition of illumos as
a Rust target, it must be wired into the same interfaces which it was
consuming when running under the 'solaris' target.
Diffstat (limited to 'tokio/src/net/unix')
-rw-r--r-- | tokio/src/net/unix/ucred.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tokio/src/net/unix/ucred.rs b/tokio/src/net/unix/ucred.rs index cdd77ea4..466aedc2 100644 --- a/tokio/src/net/unix/ucred.rs +++ b/tokio/src/net/unix/ucred.rs @@ -22,7 +22,7 @@ pub(crate) use self::impl_linux::get_peer_cred; ))] pub(crate) use self::impl_macos::get_peer_cred; -#[cfg(any(target_os = "solaris"))] +#[cfg(any(target_os = "solaris", target_os = "illumos"))] pub(crate) use self::impl_solaris::get_peer_cred; #[cfg(any(target_os = "linux", target_os = "android"))] @@ -110,7 +110,7 @@ pub(crate) mod impl_macos { } } -#[cfg(any(target_os = "solaris"))] +#[cfg(any(target_os = "solaris", target_os = "illumos"))] pub(crate) mod impl_solaris { use crate::net::unix::UnixStream; use std::io; |