Skip to content

Commit 037d741

Browse files
committed
Add ip_mreqn on Android
This was added to Android's libc (bionic) in 2013. See https://cs.android.com/android/_/android/platform/bionic/+/655a7c081f83b8351ed5f11a6c6accd9458293a8.
1 parent 3bbc552 commit 037d741

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libc-test/semver/android.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2844,6 +2844,7 @@ intptr_t
28442844
ioctl
28452845
iovec
28462846
ip_mreq
2847+
ip_mreqn
28472848
ip_mreq_source
28482849
ipv6_mreq
28492850
isalnum

src/unix/linux_like/android/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,12 @@ s! {
7373
pub cmsg_type: ::c_int,
7474
}
7575

76+
pub struct ip_mreqn {
77+
pub imr_multiaddr: ::in_addr,
78+
pub imr_address: ::in_addr,
79+
pub imr_ifindex: ::c_int,
80+
}
81+
7682
pub struct termios {
7783
pub c_iflag: ::tcflag_t,
7884
pub c_oflag: ::tcflag_t,

0 commit comments

Comments
 (0)