diff --git a/tokio/src/net/unix/ucred.rs b/tokio/src/net/unix/ucred.rs index 265ed9678..f77befb06 100644 --- a/tokio/src/net/unix/ucred.rs +++ b/tokio/src/net/unix/ucred.rs @@ -62,7 +62,7 @@ pub(crate) use self::impl_solaris::get_peer_cred; #[cfg(target_os = "aix")] pub(crate) use self::impl_aix::get_peer_cred; -#[cfg(any(target_os = "espidf", target_os = "vita"))] +#[cfg(any(target_os = "espidf", target_os = "vita", target_os = "hurd"))] pub(crate) use self::impl_noproc::get_peer_cred; #[cfg(any( @@ -317,7 +317,7 @@ pub(crate) mod impl_aix { } } -#[cfg(any(target_os = "espidf", target_os = "vita"))] +#[cfg(any(target_os = "espidf", target_os = "vita", target_os = "hurd"))] pub(crate) mod impl_noproc { use crate::net::unix::UnixStream; use std::io;