Skip to content

Commit

Permalink
tokio: add support for illumos target (tokio-rs#2486)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
pfmooney authored and jensim committed Jun 7, 2020
1 parent 1a77367 commit 33b7cd7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tokio/src/net/unix/ucred.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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"))]
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 33b7cd7

Please sign in to comment.