Skip to content

Commit

Permalink
Auto merge of #2648 - mcginty:openbsd-ip_mreqn, r=Amanieu
Browse files Browse the repository at this point in the history
Define ip_mreqn on OpenBSD

Essentially an extension of #2625

Reference: https://man.openbsd.org/ip.4
  • Loading branch information
bors committed Jan 24, 2022
2 parents 157bcec + 2cfa3e9 commit b2cd590
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/openbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -999,6 +999,7 @@ if_nameindex
ifaddrs
in6_pktinfo
initgroups
ip_mreqn
ipc_perm
iso_args
kevent
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/netbsdlike/openbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit b2cd590

Please sign in to comment.