Skip to content

Commit

Permalink
Add ip_mreqn on FreeBSD
Browse files Browse the repository at this point in the history
This was added in FreeBSD 13.0.0. See
freebsd/freebsd-src@0dfc145a.
  • Loading branch information
tamird committed Jan 13, 2022
1 parent 6e2f0a0 commit 163272b
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/freebsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1536,6 +1536,7 @@ if_nameindex
ifaddrs
in6_pktinfo
initgroups
ip_mreqn
ipc_perm
jail
jail_attach
Expand Down
6 changes: 6 additions & 0 deletions src/unix/bsd/freebsdlike/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 163272b

Please sign in to comment.