Skip to content

Commit 1f6d7dc

Browse files
committed
Remove target_os, which does not have cmsghdr struct in libc
1 parent 7b476d8 commit 1f6d7dc

File tree

4 files changed

+0
-12
lines changed

4 files changed

+0
-12
lines changed

library/std/src/sys/unix/ext/net/datagram.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ use crate::sys::unix::ext::net::addr::{sockaddr_un, SocketAddr};
1212
target_os = "linux",
1313
target_os = "netbsd",
1414
target_os = "openbsd",
15-
target_env = "uclibc",
1615
))]
1716
use crate::sys::unix::ext::net::ancillary::{
1817
recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary,
@@ -364,7 +363,6 @@ impl UnixDatagram {
364363
target_os = "linux",
365364
target_os = "netbsd",
366365
target_os = "openbsd",
367-
target_env = "uclibc",
368366
))]
369367
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
370368
pub fn recv_vectored_with_ancillary_from(
@@ -422,7 +420,6 @@ impl UnixDatagram {
422420
target_os = "linux",
423421
target_os = "netbsd",
424422
target_os = "openbsd",
425-
target_env = "uclibc",
426423
))]
427424
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
428425
pub fn recv_vectored_with_ancillary(
@@ -529,7 +526,6 @@ impl UnixDatagram {
529526
target_os = "linux",
530527
target_os = "netbsd",
531528
target_os = "openbsd",
532-
target_env = "uclibc",
533529
))]
534530
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
535531
pub fn send_vectored_with_ancillary_to<P: AsRef<Path>>(
@@ -578,7 +574,6 @@ impl UnixDatagram {
578574
target_os = "linux",
579575
target_os = "netbsd",
580576
target_os = "openbsd",
581-
target_env = "uclibc",
582577
))]
583578
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
584579
pub fn send_vectored_with_ancillary(

library/std/src/sys/unix/ext/net/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ mod addr;
1111
target_os = "linux",
1212
target_os = "netbsd",
1313
target_os = "openbsd",
14-
target_env = "uclibc",
1514
)))]
1615
#[cfg(any(
1716
doc,
@@ -22,7 +21,6 @@ mod addr;
2221
target_os = "linux",
2322
target_os = "netbsd",
2423
target_os = "openbsd",
25-
target_env = "uclibc",
2624
))]
2725
mod ancillary;
2826
mod datagram;
@@ -42,7 +40,6 @@ pub use self::addr::*;
4240
target_os = "linux",
4341
target_os = "netbsd",
4442
target_os = "openbsd",
45-
target_env = "uclibc",
4643
))]
4744
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
4845
pub use self::ancillary::*;

library/std/src/sys/unix/ext/net/stream.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ use crate::sys::unix::ext::net::addr::{sockaddr_un, SocketAddr};
2424
target_os = "linux",
2525
target_os = "netbsd",
2626
target_os = "openbsd",
27-
target_env = "uclibc",
2827
))]
2928
use crate::sys::unix::ext::net::ancillary::{
3029
recv_vectored_with_ancillary_from, send_vectored_with_ancillary_to, SocketAncillary,
@@ -536,7 +535,6 @@ impl UnixStream {
536535
target_os = "linux",
537536
target_os = "netbsd",
538537
target_os = "openbsd",
539-
target_env = "uclibc",
540538
))]
541539
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
542540
pub fn recv_vectored_with_ancillary(
@@ -586,7 +584,6 @@ impl UnixStream {
586584
target_os = "linux",
587585
target_os = "netbsd",
588586
target_os = "openbsd",
589-
target_env = "uclibc",
590587
))]
591588
#[unstable(feature = "unix_socket_ancillary_data", issue = "76915")]
592589
pub fn send_vectored_with_ancillary(

library/std/src/sys/unix/ext/net/tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -566,7 +566,6 @@ fn test_send_vectored_with_ancillary_to_unix_datagram() {
566566
target_os = "linux",
567567
target_os = "netbsd",
568568
target_os = "openbsd",
569-
target_env = "uclibc",
570569
))]
571570
#[test]
572571
fn test_send_vectored_with_ancillary_unix_datagram() {

0 commit comments

Comments
 (0)