From ee4de818065a97c0be0d6bfc18fb36725349aef8 Mon Sep 17 00:00:00 2001 From: Pino Toscano Date: Fri, 27 Mar 2026 09:38:54 +0100 Subject: [PATCH] net: use null get_peer_cred on Hurd (#7989) --- tokio/src/net/unix/ucred.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;