Skip to content

Commit 9878123

Browse files
author
Gleb Pomykalov
committed
Fix cfg attrs on SendMmsgData
1 parent af9bd99 commit 9878123

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/sys/socket/mod.rs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,13 @@ pub fn sendmsg(fd: RawFd, iov: &[IoVec<&[u8]>], cmsgs: &[ControlMessage],
792792
Errno::result(ret).map(|r| r as usize)
793793
}
794794

795-
#[cfg(any(target_os = "linux", target_os = "freebsd"))]
795+
#[cfg(any(
796+
target_os = "linux",
797+
target_os = "android",
798+
target_os = "freebsd",
799+
target_os = "openbsd",
800+
target_os = "netbsd",
801+
))]
796802
#[derive(Debug)]
797803
pub struct SendMmsgData<'a, I, C>
798804
where

0 commit comments

Comments
 (0)