From 2cfa3e949fd69c79f09c4b2a6119df884e3532d5 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 24 Jan 2022 10:14:59 -0700 Subject: [PATCH] Define ip_mreqn on OpenBSD --- libc-test/semver/openbsd.txt | 1 + src/unix/bsd/netbsdlike/openbsd/mod.rs | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/libc-test/semver/openbsd.txt b/libc-test/semver/openbsd.txt index 49704b62..5c316c9f 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 e69c086c..23653432 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,