Skip to content

Commit

Permalink
Add ip_mreqn on Android
Browse files Browse the repository at this point in the history
  • Loading branch information
tamird committed Jan 17, 2022
1 parent 3bbc552 commit 037d741
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/android.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2844,6 +2844,7 @@ intptr_t
ioctl
iovec
ip_mreq
ip_mreqn
ip_mreq_source
ipv6_mreq
isalnum
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/android/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,12 @@ s! {
pub cmsg_type: ::c_int,
}

pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}

pub struct termios {
pub c_iflag: ::tcflag_t,
pub c_oflag: ::tcflag_t,
Expand Down

0 comments on commit 037d741

Please sign in to comment.