summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTamir Duberstein <tamird@google.com>2022-01-13 12:32:00 -0500
committerTamir Duberstein <tamird@google.com>2022-01-17 15:37:50 +0000
commit3bbc552727d06eefa8f28a75d7b248e552938b15 (patch)
tree7fbbd979199f7ff10d88cbce7071e0f03543c64b
parent6fbe3b78f1f0c734577d8b33281f749f2ce9441b (diff)
downloadrust-libc-3bbc552727d06eefa8f28a75d7b248e552938b15.tar.gz
Add `ip_mreqn` on FreeBSD
This was added in FreeBSD 13.0.0. See https://github.com/freebsd/freebsd-src/commit/0dfc145a.
-rw-r--r--libc-test/semver/freebsd.txt1
-rw-r--r--src/unix/bsd/freebsdlike/mod.rs6
2 files changed, 7 insertions, 0 deletions
diff --git a/libc-test/semver/freebsd.txt b/libc-test/semver/freebsd.txt
index 6e333b7169..7db6435eb3 100644
--- a/libc-test/semver/freebsd.txt
+++ b/libc-test/semver/freebsd.txt
@@ -1536,6 +1536,7 @@ if_nameindex
ifaddrs
in6_pktinfo
initgroups
+ip_mreqn
ipc_perm
jail
jail_attach
diff --git a/src/unix/bsd/freebsdlike/mod.rs b/src/unix/bsd/freebsdlike/mod.rs
index ad5ce27ea2..d0276a7979 100644
--- a/src/unix/bsd/freebsdlike/mod.rs
+++ b/src/unix/bsd/freebsdlike/mod.rs
@@ -90,6 +90,12 @@ s! {
pub imr_interface: in_addr,
}
+ 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,