Skip to content

Commit

Permalink
Fix build on OpenBSD caused by erroneous inclusion in allowed OS list…
Browse files Browse the repository at this point in the history
… for sendmmsg() / recvmmsg() in nix-rust#1208.

In nix-rust#1208, sendmmsg() / recvmmsg() were added, but OpenBSD(who doesn't support these)
was included on the list of allowed operating systems for sendmmsg() related things.
This broke the build on OpenBSD.

For more Rust-world examples, see: rust-lang/libc@6f62973
  • Loading branch information
nickpelone committed May 26, 2020
1 parent c379d1a commit dd0a990
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
2 changes: 0 additions & 2 deletions src/sys/socket/mod.rs
Expand Up @@ -920,7 +920,6 @@ pub fn sendmsg(fd: RawFd, iov: &[IoVec<&[u8]>], cmsgs: &[ControlMessage],
target_os = "linux",
target_os = "android",
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
))]
#[derive(Debug)]
Expand Down Expand Up @@ -956,7 +955,6 @@ pub struct SendMmsgData<'a, I, C>
target_os = "linux",
target_os = "android",
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
))]
pub fn sendmmsg<'a, I, C>(
Expand Down
1 change: 0 additions & 1 deletion test/sys/test_socket.rs
Expand Up @@ -309,7 +309,6 @@ mod recvfrom {
target_os = "linux",
target_os = "android",
target_os = "freebsd",
target_os = "openbsd",
target_os = "netbsd",
))]
#[test]
Expand Down

0 comments on commit dd0a990

Please sign in to comment.