summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharlie Root <root@openbsd.my.domain>2022-01-24 10:14:59 -0700
committerJake McGinty <me@jake.su>2022-01-24 10:22:33 -0700
commit2cfa3e949fd69c79f09c4b2a6119df884e3532d5 (patch)
treef52b9b4008bc52a9e69fb64ca2c401135df7bfe2
parent3dd61509056707101d231053867d515ee5dd262e (diff)
downloadrust-libc-2cfa3e949fd69c79f09c4b2a6119df884e3532d5.tar.gz
Define ip_mreqn on OpenBSD
-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,