Skip to content

Commit

Permalink
Remove freebsd/netbsd again since the build fails
Browse files Browse the repository at this point in the history
  • Loading branch information
dholroyd committed Jan 26, 2019
1 parent 4566da4 commit 674f4a2
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 18 deletions.
16 changes: 0 additions & 16 deletions src/sys/socket/mod.rs
Expand Up @@ -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;

Expand Down Expand Up @@ -1217,17 +1213,13 @@ 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)]
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]>],
Expand Down Expand Up @@ -1312,17 +1304,13 @@ impl<'a> SendMMsgHdr<'a> {

#[cfg(any(
target_os = "linux",
target_os = "freebsd",
target_os = "netbsd",
))]
#[repr(C)]
#[allow(missing_debug_implementations)]
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<T>(iov: &mut[IoVec<&'a mut [u8]>],
Expand Down Expand Up @@ -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,
Expand All @@ -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<usize> {
let ret = unsafe {
Expand Down
2 changes: 0 additions & 2 deletions test/sys/test_socket.rs
Expand Up @@ -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() {
Expand Down

0 comments on commit 674f4a2

Please sign in to comment.