Skip to content

Commit ca4611d

Browse files
committed
Remove freebsd/netbsd again since the build fails
1 parent 4a3b203 commit ca4611d

File tree

2 files changed

+0
-18
lines changed

2 files changed

+0
-18
lines changed

src/sys/socket/mod.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,10 @@ use sys::time::TimeVal;
1111
use sys::uio::IoVec;
1212
#[cfg(any(
1313
target_os = "linux",
14-
target_os = "freebsd",
15-
target_os = "netbsd",
1614
))]
1715
use sys::time::TimeSpec;
1816
#[cfg(any(
1917
target_os = "linux",
20-
target_os = "freebsd",
21-
target_os = "netbsd",
2218
))]
2319
use std::marker::PhantomData;
2420

@@ -1349,17 +1345,13 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
13491345

13501346
#[cfg(any(
13511347
target_os = "linux",
1352-
target_os = "freebsd",
1353-
target_os = "netbsd",
13541348
))]
13551349
#[repr(C)]
13561350
#[allow(missing_debug_implementations)]
13571351
pub struct SendMMsgHdr<'a>(libc::mmsghdr, PhantomData<&'a ()>);
13581352

13591353
#[cfg(any(
13601354
target_os = "linux",
1361-
target_os = "freebsd",
1362-
target_os = "netbsd",
13631355
))]
13641356
impl<'a> SendMMsgHdr<'a> {
13651357
pub fn new(iov: &mut[IoVec<&'a mut [u8]>],
@@ -1444,17 +1436,13 @@ impl<'a> SendMMsgHdr<'a> {
14441436

14451437
#[cfg(any(
14461438
target_os = "linux",
1447-
target_os = "freebsd",
1448-
target_os = "netbsd",
14491439
))]
14501440
#[repr(C)]
14511441
#[allow(missing_debug_implementations)]
14521442
pub struct RecvMMsgHdr<'a>(libc::mmsghdr, PhantomData<&'a ()>);
14531443

14541444
#[cfg(any(
14551445
target_os = "linux",
1456-
target_os = "freebsd",
1457-
target_os = "netbsd",
14581446
))]
14591447
impl<'a> RecvMMsgHdr<'a> {
14601448
pub fn new<T>(iov: &mut[IoVec<&'a mut [u8]>],
@@ -1517,8 +1505,6 @@ impl<'a> RecvMMsgHdr<'a> {
15171505
/// Receive multiple messages from a socket using a single system call.
15181506
#[cfg(any(
15191507
target_os = "linux",
1520-
target_os = "freebsd",
1521-
target_os = "netbsd",
15221508
))]
15231509
pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr],
15241510
flags: MsgFlags,
@@ -1542,8 +1528,6 @@ pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr],
15421528
/// Transmit multiple messages on a socket using a single system call.
15431529
#[cfg(any(
15441530
target_os = "linux",
1545-
target_os = "freebsd",
1546-
target_os = "netbsd",
15471531
))]
15481532
pub fn sendmmsg(fd: RawFd, msgvec: &mut[SendMMsgHdr]) -> Result<usize> {
15491533
let ret = unsafe {

test/sys/test_socket.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -962,8 +962,6 @@ pub fn test_recv_ipv6pktinfo() {
962962

963963
#[cfg(any(
964964
target_os = "linux",
965-
target_os = "freebsd",
966-
target_os = "netbsd",
967965
))]
968966
#[test]
969967
pub fn test_mmsg() {

0 commit comments

Comments
 (0)