Skip to content

Commit

Permalink
fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header fil…
Browse files Browse the repository at this point in the history
…e in illumos

Signed-off-by: Till Wegmueller <toasterson@gmail.com>
  • Loading branch information
Toasterson committed Mar 14, 2023
1 parent 60bf6d7 commit 595c2ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/unix/solarish/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2579,7 +2579,7 @@ pub const AT_SUN_FPTYPE: ::c_uint = 2027;
// and 4 bytes everywhere else:
#[cfg(target_arch = "sparc64")]
const _CMSG_HDR_ALIGNMENT: usize = 8;
#[cfg(any(target_arch = "x86", target_arch = "x86_64"))]
#[cfg(not(target_arch = "sparc64"))]
const _CMSG_HDR_ALIGNMENT: usize = 4;

const _CMSG_DATA_ALIGNMENT: usize = ::mem::size_of::<::c_int>();
Expand Down

0 comments on commit 595c2ab

Please sign in to comment.