summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-01-24 17:55:10 +0000
committerbors <bors@rust-lang.org>2022-01-24 17:55:10 +0000
commitb2cd590cf366a4530bd95c290303a5c3b1d267b6 (patch)
treef7c1f48f8c8a9fc872944944016178f09419ac22
parent157bcec987c6aee1538b73e90e01ea041b0d66d9 (diff)
parent2cfa3e949fd69c79f09c4b2a6119df884e3532d5 (diff)
downloadrust-libc-b2cd590cf366a4530bd95c290303a5c3b1d267b6.tar.gz
Auto merge of #2648 - mcginty:openbsd-ip_mreqn, r=Amanieu
Define ip_mreqn on OpenBSD Essentially an extension of https://github.com/rust-lang/libc/pull/2625 Reference: https://man.openbsd.org/ip.4
-rw-r--r--libc-test/semver/openbsd.txt1
-rw-r--r--src/unix/bsd/netbsdlike/openbsd/mod.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/libc-test/semver/openbsd.txt b/libc-test/semver/openbsd.txt
index 49704b62b4..5c316c9f37 100644
--- a/libc-test/semver/openbsd.txt
+++ b/libc-test/semver/openbsd.txt
@@ -999,6 +999,7 @@ if_nameindex
ifaddrs
in6_pktinfo
initgroups
+ip_mreqn
ipc_perm
iso_args
kevent
diff --git a/src/unix/bsd/netbsdlike/openbsd/mod.rs b/src/unix/bsd/netbsdlike/openbsd/mod.rs
index e69c086c52..2365343205 100644
--- a/src/unix/bsd/netbsdlike/openbsd/mod.rs
+++ b/src/unix/bsd/netbsdlike/openbsd/mod.rs
@@ -48,6 +48,12 @@ cfg_if! {
}
s! {
+ pub struct ip_mreqn {
+ pub imr_multiaddr: in_addr,
+ pub imr_address: in_addr,
+ pub imr_ifindex: ::c_int,
+ }
+
pub struct glob_t {
pub gl_pathc: ::size_t,
pub gl_matchc: ::size_t,