Add struct ip_mreqn to more Linux targets

Support was previously added to gnu x86_64 and all musl targets but
others were not included because of a roundtrip issue [1].

This commit adds support for the ip_mreqn struct on all Linux GNU
targets which did not have the roundtrip issue.

[1]: https://github.com/rust-lang/libc/issues/1558

Signed-off-by: Bartel Sielski <bartel.sielski@gmail.com>
This commit is contained in:
Bartel Sielski 2020-09-25 15:50:23 +02:00
parent 87d3a326b2
commit f64da93c68
4 changed files with 24 additions and 0 deletions

View File

@ -115,6 +115,12 @@ s! {
pub mem_unit: ::c_uint,
pub _f: [::c_char; 8],
}
pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}
pub const O_NOATIME: ::c_int = 0o1000000;

View File

@ -203,6 +203,12 @@ s! {
pub ss_flags: ::c_int,
pub ss_size: ::size_t
}
pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}
pub const VEOF: usize = 4;

View File

@ -190,6 +190,12 @@ s! {
pub ss_flags: ::c_int,
pub ss_size: ::size_t
}
pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}
pub const POSIX_FADV_DONTNEED: ::c_int = 4;

View File

@ -191,6 +191,12 @@ s! {
pub l_len: ::off64_t,
pub l_pid: ::pid_t,
}
pub struct ip_mreqn {
pub imr_multiaddr: ::in_addr,
pub imr_address: ::in_addr,
pub imr_ifindex: ::c_int,
}
}
pub const POSIX_FADV_DONTNEED: ::c_int = 4;