diff options
| author | LinkTed <LinkTed@users.noreply.github.com> | 2020-09-20 14:53:21 +0200 |
|---|---|---|
| committer | LinkTed <LinkTed@users.noreply.github.com> | 2020-10-10 15:19:13 +0200 |
| commit | 1f6d7dcc0a917617eb135a39b4687c3a4a4e3e0b (patch) | |
| tree | 81b03ccd1b713c658bb307a096239e67a10f1643 | |
| parent | 7b476d87fbdd678f0a580f90193938e787d0ce99 (diff) | |
| download | rust-1f6d7dcc0a917617eb135a39b4687c3a4a4e3e0b.tar.gz rust-1f6d7dcc0a917617eb135a39b4687c3a4a4e3e0b.zip | |
Remove `target_os`, which does not have `cmsghdr` struct in `libc`
| -rw-r--r-- | library/std/src/sys/unix/ext/net/datagram.rs | 5 | ||||
| -rw-r--r-- | library/std/src/sys/unix/ext/net/mod.rs | 3 | ||||
| -rw-r--r-- | library/std/src/sys/unix/ext/net/stream.rs | 3 | ||||
| -rw-r--r-- | library/std/src/sys/unix/ext/net/tests.rs | 1 |
4 files changed, 0 insertions, 12 deletions
diff --git a/library/std/src/sys/unix/ext/net/datagram.rs b/library/std/src/sys/unix/ext/net/datagram.rs index 116375ad48b..52cb3c0d904 100644 --- a/library/std/src/sys/unix/ext/net/datagram.rs +++ b/library/std/src/sys/unix/ext/net/datagram.rs @@ -12,7 +12,6 @@ use crate::sys::unix::ext::net::addr::{sockaddr_un, SocketAddr}; target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] use crate::sys::unix::ext::net::ancillary::{ recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary, @@ -364,7 +363,6 @@ impl UnixDatagram { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn recv_vectored_with_ancillary_from( @@ -422,7 +420,6 @@ impl UnixDatagram { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn recv_vectored_with_ancillary( @@ -529,7 +526,6 @@ impl UnixDatagram { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn send_vectored_with_ancillary_to<P: AsRef<Path>>( @@ -578,7 +574,6 @@ impl UnixDatagram { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn send_vectored_with_ancillary( diff --git a/library/std/src/sys/unix/ext/net/mod.rs b/library/std/src/sys/unix/ext/net/mod.rs index 366ee7edf2a..d2799bbcaf8 100644 --- a/library/std/src/sys/unix/ext/net/mod.rs +++ b/library/std/src/sys/unix/ext/net/mod.rs @@ -11,7 +11,6 @@ mod addr; target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", )))] #[cfg(any( doc, @@ -22,7 +21,6 @@ mod addr; target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] mod ancillary; mod datagram; @@ -42,7 +40,6 @@ pub use self::addr::*; target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub use self::ancillary::*; diff --git a/library/std/src/sys/unix/ext/net/stream.rs b/library/std/src/sys/unix/ext/net/stream.rs index 671639949cb..21b13a083a0 100644 --- a/library/std/src/sys/unix/ext/net/stream.rs +++ b/library/std/src/sys/unix/ext/net/stream.rs @@ -24,7 +24,6 @@ use crate::sys::unix::ext::net::addr::{sockaddr_un, SocketAddr}; target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] use crate::sys::unix::ext::net::ancillary::{ recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary, @@ -536,7 +535,6 @@ impl UnixStream { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn recv_vectored_with_ancillary( @@ -586,7 +584,6 @@ impl UnixStream { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[unstable(feature = "unix_socket_ancillary_data", issue = "76915")] pub fn send_vectored_with_ancillary( diff --git a/library/std/src/sys/unix/ext/net/tests.rs b/library/std/src/sys/unix/ext/net/tests.rs index 7690590b68b..9f34059d011 100644 --- a/library/std/src/sys/unix/ext/net/tests.rs +++ b/library/std/src/sys/unix/ext/net/tests.rs @@ -566,7 +566,6 @@ fn test_send_vectored_with_ancillary_to_unix_datagram() { target_os = "linux", target_os = "netbsd", target_os = "openbsd", - target_env = "uclibc", ))] #[test] fn test_send_vectored_with_ancillary_unix_datagram() { |
