diff --git a/src/backend/libc/net/mod.rs b/src/backend/libc/net/mod.rs index da7e1df8f..201362625 100644 --- a/src/backend/libc/net/mod.rs +++ b/src/backend/libc/net/mod.rs @@ -4,7 +4,6 @@ pub(crate) mod ext; windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] pub(crate) mod msghdr; diff --git a/src/backend/libc/net/msghdr.rs b/src/backend/libc/net/msghdr.rs index fe5471b95..f46ac7e29 100644 --- a/src/backend/libc/net/msghdr.rs +++ b/src/backend/libc/net/msghdr.rs @@ -16,6 +16,7 @@ use core::mem::zeroed; not(any(windows, target_os = "espidf", target_os = "wasi")), any( target_os = "android", + target_os = "redox", all( target_os = "linux", not(target_env = "musl"), @@ -30,15 +31,10 @@ fn msg_iov_len(len: usize) -> c::size_t { /// Convert the value to the `msg_iovlen` field of a `msghdr` struct. #[cfg(all( - not(any( - windows, - target_os = "espidf", - target_os = "redox", - target_os = "vita", - target_os = "wasi" - )), + not(any(windows, target_os = "espidf", target_os = "vita", target_os = "wasi")), not(any( target_os = "android", + target_os = "redox", all( target_os = "linux", not(target_env = "musl"), @@ -83,7 +79,6 @@ fn msg_control_len(len: usize) -> c::socklen_t { target_os = "haiku", target_os = "hurd", target_os = "nto", - target_os = "redox", target_os = "vita", target_os = "wasi", )))] @@ -179,7 +174,7 @@ pub(crate) unsafe fn with_msghdr( } /// Create a zero-initialized message header struct value. -#[cfg(all(unix, not(target_os = "redox")))] +#[cfg(unix)] pub(crate) fn zero_msghdr() -> c::msghdr { // SAFETY: We can't initialize all the fields by value because on some // platforms the `msghdr` struct in the libc crate contains private padding diff --git a/src/backend/libc/net/syscalls.rs b/src/backend/libc/net/syscalls.rs index aafea0025..e9138143d 100644 --- a/src/backend/libc/net/syscalls.rs +++ b/src/backend/libc/net/syscalls.rs @@ -21,7 +21,6 @@ use core::ptr::null_mut; windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] use { @@ -187,7 +186,6 @@ pub(crate) fn accept(sockfd: BorrowedFd<'_>) -> io::Result { windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] pub(crate) fn recvmsg( @@ -222,7 +220,6 @@ pub(crate) fn recvmsg( windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] pub(crate) fn sendmsg( @@ -245,7 +242,6 @@ pub(crate) fn sendmsg( windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] pub(crate) fn sendmsg_addr( diff --git a/src/net/send_recv/mod.rs b/src/net/send_recv/mod.rs index 0aac6d2eb..a7056cb3e 100644 --- a/src/net/send_recv/mod.rs +++ b/src/net/send_recv/mod.rs @@ -15,7 +15,6 @@ pub use backend::net::send_recv::{RecvFlags, ReturnFlags, SendFlags}; windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] mod msg; @@ -24,7 +23,6 @@ mod msg; windows, target_os = "espidf", target_os = "horizon", - target_os = "redox", target_os = "vita" )))] pub use msg::*;