From 674f4a2a2971dbc236f4d46482713d18072b3848 Mon Sep 17 00:00:00 2001 From: David Holroyd Date: Sat, 26 Jan 2019 01:48:41 +0000 Subject: [PATCH] Remove freebsd/netbsd again since the build fails --- src/sys/socket/mod.rs | 16 ---------------- test/sys/test_socket.rs | 2 -- 2 files changed, 18 deletions(-) diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index f149a3a697..106e3cdbec 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -10,14 +10,10 @@ use sys::time::TimeVal; use sys::uio::IoVec; #[cfg(any( target_os = "linux", -target_os = "freebsd", -target_os = "netbsd", ))] use sys::time::TimeSpec; #[cfg(any( target_os = "linux", -target_os = "freebsd", -target_os = "netbsd", ))] use std::marker::PhantomData; @@ -1217,8 +1213,6 @@ pub fn shutdown(df: RawFd, how: Shutdown) -> Result<()> { #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] #[repr(C)] #[allow(missing_debug_implementations)] @@ -1226,8 +1220,6 @@ pub struct SendMMsgHdr<'a>(libc::mmsghdr, PhantomData<&'a ()>); #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] impl<'a> SendMMsgHdr<'a> { pub fn new(iov: &mut[IoVec<&'a mut [u8]>], @@ -1312,8 +1304,6 @@ impl<'a> SendMMsgHdr<'a> { #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] #[repr(C)] #[allow(missing_debug_implementations)] @@ -1321,8 +1311,6 @@ pub struct RecvMMsgHdr<'a>(libc::mmsghdr, PhantomData<&'a ()>); #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] impl<'a> RecvMMsgHdr<'a> { pub fn new(iov: &mut[IoVec<&'a mut [u8]>], @@ -1385,8 +1373,6 @@ impl<'a> RecvMMsgHdr<'a> { /// Receive multiple messages from a socket using a single system call. #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr], flags: MsgFlags, @@ -1410,8 +1396,6 @@ pub fn recvmmsg(fd: RawFd, msgvec: &mut[RecvMMsgHdr], /// Transmit multiple messages on a socket using a single system call. #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] pub fn sendmmsg(fd: RawFd, msgvec: &mut[SendMMsgHdr]) -> Result { let ret = unsafe { diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index a4ebe9304d..115a96eede 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -686,8 +686,6 @@ pub fn test_recv_ipv6pktinfo() { #[cfg(any( target_os = "linux", - target_os = "freebsd", - target_os = "netbsd", ))] #[test] pub fn test_mmsg() {