Skip to content

Commit 6fbe3b7

Browse files
committed
Add ip_mreqn on Apple platforms
Available since macOS 10.7. See https://developer.apple.com/documentation/kernel/ip_mreqn.
1 parent df679e8 commit 6fbe3b7

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/apple.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1724,6 +1724,7 @@ in6_pktinfo
17241724
in_pktinfo
17251725
initgroups
17261726
integer_t
1727+
ip_mreqn
17271728
ipc_perm
17281729
kern_return_t
17291730
kevent

src/unix/bsd/apple/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,12 @@ s! {
215215
pub imr_interface: in_addr,
216216
}
217217

218+
pub struct ip_mreqn {
219+
pub imr_multiaddr: in_addr,
220+
pub imr_address: in_addr,
221+
pub imr_ifindex: ::c_int,
222+
}
223+
218224
pub struct aiocb {
219225
pub aio_fildes: ::c_int,
220226
pub aio_offset: ::off_t,

0 commit comments

Comments
 (0)