Skip to content

Commit

Permalink
Fix cfg attrs on SendMmsgData
Browse files Browse the repository at this point in the history
  • Loading branch information
Gleb Pomykalov committed Apr 20, 2020
1 parent af9bd99 commit 9878123
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sys/socket/mod.rs
Expand Up @@ -792,7 +792,13 @@ pub fn sendmsg(fd: RawFd, iov: &[IoVec<&[u8]>], cmsgs: &[ControlMessage],
Errno::result(ret).map(|r| r as usize)
}

#[cfg(any(target_os = "linux", target_os = "freebsd"))]
#[cfg(any(
target_os = "linux",
target_os = "android",
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
))]
#[derive(Debug)]
pub struct SendMmsgData<'a, I, C>
where
Expand Down

0 comments on commit 9878123

Please sign in to comment.