From 595c2aba82937ab954037c1ebe4baf5f88afe9b4 Mon Sep 17 00:00:00 2001 From: Till Wegmueller Date: Tue, 14 Mar 2023 18:53:55 +0100 Subject: [PATCH] fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header file in illumos Signed-off-by: Till Wegmueller --- src/unix/solarish/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs index 88f9cab9d638b..1993e18490a3b 100644 --- a/src/unix/solarish/mod.rs +++ b/src/unix/solarish/mod.rs @@ -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>();