diff options
author | bors <bors@rust-lang.org> | 2022-01-24 17:55:10 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2022-01-24 17:55:10 +0000 |
commit | b2cd590cf366a4530bd95c290303a5c3b1d267b6 (patch) | |
tree | f7c1f48f8c8a9fc872944944016178f09419ac22 | |
parent | 157bcec987c6aee1538b73e90e01ea041b0d66d9 (diff) | |
parent | 2cfa3e949fd69c79f09c4b2a6119df884e3532d5 (diff) | |
download | rust-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.txt | 1 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/openbsd/mod.rs | 6 |
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, |