diff --git a/tokio/src/net/tcp/socket.rs b/tokio/src/net/tcp/socket.rs index f4b28705d..d27d811db 100644 --- a/tokio/src/net/tcp/socket.rs +++ b/tokio/src/net/tcp/socket.rs @@ -286,6 +286,7 @@ impl TcpSocket { not(target_os = "solaris"), not(target_os = "illumos"), not(target_os = "cygwin"), + not(target_os = "nuttx"), ))] #[cfg_attr( docsrs, @@ -294,6 +295,7 @@ impl TcpSocket { not(target_os = "solaris"), not(target_os = "illumos"), not(target_os = "cygwin"), + not(target_os = "nuttx"), ))) )] pub fn set_reuseport(&self, reuseport: bool) -> io::Result<()> { @@ -331,6 +333,7 @@ impl TcpSocket { not(target_os = "solaris"), not(target_os = "illumos"), not(target_os = "cygwin"), + not(target_os = "nuttx"), ))] #[cfg_attr( docsrs, @@ -339,6 +342,7 @@ impl TcpSocket { not(target_os = "solaris"), not(target_os = "illumos"), not(target_os = "cygwin"), + not(target_os = "nuttx"), ))) )] pub fn reuseport(&self) -> io::Result { diff --git a/tokio/src/net/unix/ucred.rs b/tokio/src/net/unix/ucred.rs index a268bad1b..6b94b3d7f 100644 --- a/tokio/src/net/unix/ucred.rs +++ b/tokio/src/net/unix/ucred.rs @@ -67,7 +67,12 @@ 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", target_os = "hurd"))] +#[cfg(any( + target_os = "espidf", + target_os = "nuttx", + target_os = "vita", + target_os = "hurd" +))] pub(crate) use self::impl_noproc::get_peer_cred; #[cfg(any( @@ -390,7 +395,12 @@ pub(crate) mod impl_aix { } } -#[cfg(any(target_os = "espidf", target_os = "vita", target_os = "hurd"))] +#[cfg(any( + target_os = "espidf", + target_os = "nuttx", + target_os = "vita", + target_os = "hurd" +))] pub(crate) mod impl_noproc { use crate::net::unix::UnixStream; use std::io;