Skip to content

Commit 33b7cd7

Browse files
pfmooneyjensim
authored andcommitted
tokio: add support for illumos target (tokio-rs#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.
1 parent 1a77367 commit 33b7cd7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tokio/src/net/unix/ucred.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub(crate) use self::impl_linux::get_peer_cred;
2222
))]
2323
pub(crate) use self::impl_macos::get_peer_cred;
2424

25-
#[cfg(any(target_os = "solaris"))]
25+
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
2626
pub(crate) use self::impl_solaris::get_peer_cred;
2727

2828
#[cfg(any(target_os = "linux", target_os = "android"))]
@@ -110,7 +110,7 @@ pub(crate) mod impl_macos {
110110
}
111111
}
112112

113-
#[cfg(any(target_os = "solaris"))]
113+
#[cfg(any(target_os = "solaris", target_os = "illumos"))]
114114
pub(crate) mod impl_solaris {
115115
use crate::net::unix::UnixStream;
116116
use std::io;

0 commit comments

Comments
 (0)