From dd0a99001ea2607c9914b882b0b6a10fa22c5375 Mon Sep 17 00:00:00 2001 From: Nick Pelone Date: Tue, 26 May 2020 15:20:39 -0400 Subject: [PATCH] Fix build on OpenBSD caused by erroneous inclusion in allowed OS list for sendmmsg() / recvmmsg() in #1208. In #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: https://github.com/rust-lang/libc/commit/6f6297301d49ff67b8ca044d651f36a56950298c --- src/sys/socket/mod.rs | 2 -- test/sys/test_socket.rs | 1 - 2 files changed, 3 deletions(-) diff --git a/src/sys/socket/mod.rs b/src/sys/socket/mod.rs index 52768c9351..a3c0d1284e 100644 --- a/src/sys/socket/mod.rs +++ b/src/sys/socket/mod.rs @@ -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)] @@ -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>( diff --git a/test/sys/test_socket.rs b/test/sys/test_socket.rs index 9bf458285f..d6c1ec0cbb 100644 --- a/test/sys/test_socket.rs +++ b/test/sys/test_socket.rs @@ -309,7 +309,6 @@ mod recvfrom { target_os = "linux", target_os = "android", target_os = "freebsd", - target_os = "openbsd", target_os = "netbsd", ))] #[test]