Skip to content

Commit

Permalink
Merge pull request #1903 from bartelsielski/master
Browse files Browse the repository at this point in the history
Add struct ip_mreqn to more Linux targets
  • Loading branch information
JohnTitor committed Sep 30, 2020
2 parents bffed84 + f64da93 commit b3f8975
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b32/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/aarch64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/powerpc64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 6 additions & 0 deletions src/unix/linux_like/linux/gnu/b64/riscv64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b3f8975

Please sign in to comment.