1
Fork 0

Remove target_os, which does not have cmsghdr struct in libc

This commit is contained in:
LinkTed 2020-09-20 14:53:21 +02:00
parent 7b476d87fb
commit 1f6d7dcc0a
4 changed files with 0 additions and 12 deletions

View file

@ -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(

View file

@ -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::*;

View file

@ -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(

View file

@ -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() {