mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-25 00:00:18 +02:00
net: support ucred.rs on Fuchsia (#8257)
In order to compile successfully with the net feature on Fuchsia, a cfg attribute for Fuchsia in `impl_noproc` is required.
This commit is contained in:
@@ -69,9 +69,10 @@ pub(crate) use self::impl_aix::get_peer_cred;
|
||||
|
||||
#[cfg(any(
|
||||
target_os = "espidf",
|
||||
target_os = "fuchsia",
|
||||
target_os = "hurd",
|
||||
target_os = "nuttx",
|
||||
target_os = "vita",
|
||||
target_os = "hurd"
|
||||
target_os = "vita"
|
||||
))]
|
||||
pub(crate) use self::impl_noproc::get_peer_cred;
|
||||
|
||||
@@ -400,9 +401,10 @@ pub(crate) mod impl_aix {
|
||||
|
||||
#[cfg(any(
|
||||
target_os = "espidf",
|
||||
target_os = "fuchsia",
|
||||
target_os = "hurd",
|
||||
target_os = "nuttx",
|
||||
target_os = "vita",
|
||||
target_os = "hurd"
|
||||
target_os = "vita"
|
||||
))]
|
||||
pub(crate) mod impl_noproc {
|
||||
use crate::net::unix::UnixStream;
|
||||
|
||||
Reference in New Issue
Block a user