Skip to content
Snippets Groups Projects
Unverified Commit 06bf363e authored by A. Wilcox's avatar A. Wilcox
Browse files

musl: 64-bit: Ensure proper (c)msghdr layout on big-endian

Discovered while debugging: djg/audioipc-2#52
parent f478089b
No related branches found
No related tags found
No related merge requests found
......@@ -92,16 +92,25 @@ s! {
pub msg_name: *mut ::c_void,
pub msg_namelen: ::socklen_t,
pub msg_iov: *mut ::iovec,
#[cfg(target_endian = "big")]
__pad1: ::c_int,
pub msg_iovlen: ::c_int,
#[cfg(target_endian = "little")]
__pad1: ::c_int,
pub msg_control: *mut ::c_void,
#[cfg(target_endian = "big")]
__pad2: ::c_int,
pub msg_controllen: ::socklen_t,
__pad2: ::socklen_t,
#[cfg(target_endian = "little")]
__pad2: ::c_int,
pub msg_flags: ::c_int,
}
pub struct cmsghdr {
#[cfg(target_endian = "big")]
pub __pad1: ::c_int,
pub cmsg_len: ::socklen_t,
#[cfg(target_endian = "little")]
pub __pad1: ::c_int,
pub cmsg_level: ::c_int,
pub cmsg_type: ::c_int,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment