Skip to content

Commit 674f4a2

Browse files
committed
Remove freebsd/netbsd again since the build fails
1 parent 4566da4 commit 674f4a2

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
@@ -10,14 +10,10 @@ use sys::time::TimeVal;
1010
use sys::uio::IoVec;
1111
#[cfg(any(
1212
target_os = "linux",
13-
target_os = "freebsd",
14-
target_os = "netbsd",
1513
))]
1614
use sys::time::TimeSpec;
1715
#[cfg(any(
1816
target_os = "linux",
19-
target_os = "freebsd",
20-
target_os = "netbsd",
2117
))]
2218
use std::marker::PhantomData;
2319

@@ -1217,17 +1213,13 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> {
12171213

12181214
#[cfg(any(
12191215
target_os = "linux",
1220-
target_os = "freebsd",
1221-
target_os = "netbsd",
12221216
))]
12231217
#[repr(C)]
12241218
#[allow(missing_debug_implementations)]
12251219
pub struct SendMMsgHdr<'a>(libc::mmsghdr, PhantomData<&'a ()>);
12261220

12271221
#[cfg(any(
12281222
target_os = "linux",
1229-
target_os = "freebsd",
1230-
target_os = "netbsd",
12311223
))]
12321224
impl<'a> SendMMsgHdr<'a> {
12331225
pub fn new(iov: &mut[IoVec<&'a mut [u8]>],
@@ -1312,17 +1304,13 @@ impl<'a> SendMMsgHdr<'a> {
13121304

13131305
#[cfg(any(
13141306
target_os = "linux",
1315-
target_os = "freebsd",
1316-
target_os = "netbsd",
13171307
))]
13181308
#[repr(C)]
13191309
#[allow(missing_debug_implementations)]
13201310
pub struct RecvMMsgHdr<'a>(libc::mmsghdr, PhantomData<&'a ()>);
13211311

13221312
#[cfg(any(
13231313
target_os = "linux",
1324-
target_os = "freebsd",
1325-
target_os = "netbsd",
13261314
))]
13271315
impl<'a> RecvMMsgHdr<'a> {
13281316
pub fn new<T>(iov: &mut[IoVec<&'a mut [u8]>],
@@ -1385,8 +1373,6 @@ impl<'a> RecvMMsgHdr<'a> {
13851373
/// Receive multiple messages from a socket using a single system call.
13861374
#[cfg(any(
13871375
target_os = "linux",
1388-
target_os = "freebsd",
1389-
target_os = "netbsd",
13901376
))]
13911377
pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr],
13921378
flags: MsgFlags,
@@ -1410,8 +1396,6 @@ pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr],
14101396
/// Transmit multiple messages on a socket using a single system call.
14111397
#[cfg(any(
14121398
target_os = "linux",
1413-
target_os = "freebsd",
1414-
target_os = "netbsd",
14151399
))]
14161400
pub fn sendmmsg(fd: RawFd, msgvec: &mut[SendMMsgHdr]) -> Result<usize> {
14171401
let ret = unsafe {

test/sys/test_socket.rs

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

687687
#[cfg(any(
688688
target_os = "linux",
689-
target_os = "freebsd",
690-
target_os = "netbsd",
691689
))]
692690
#[test]
693691
pub fn test_mmsg() {

0 commit comments

Comments
 (0)