Skip to content

Commit dd0a990

Browse files
committed
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: rust-lang/libc@6f62973
1 parent c379d1a commit dd0a990

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

src/sys/socket/mod.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,6 @@ pub fn sendmsg(fd: RawFd, iov: &[IoVec<&[u8]>], cmsgs: &[ControlMessage],
920920
target_os = "linux",
921921
target_os = "android",
922922
target_os = "freebsd",
923-
target_os = "openbsd",
924923
target_os = "netbsd",
925924
))]
926925
#[derive(Debug)]
@@ -956,7 +955,6 @@ pub struct SendMmsgData<'a, I, C>
956955
target_os = "linux",
957956
target_os = "android",
958957
target_os = "freebsd",
959-
target_os = "openbsd",
960958
target_os = "netbsd",
961959
))]
962960
pub fn sendmmsg<'a, I, C>(

test/sys/test_socket.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ mod recvfrom {
309309
target_os = "linux",
310310
target_os = "android",
311311
target_os = "freebsd",
312-
target_os = "openbsd",
313312
target_os = "netbsd",
314313
))]
315314
#[test]

0 commit comments

Comments
 (0)