summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTill Wegmueller <toasterson@gmail.com>2023-03-14 18:53:55 +0100
committerTill Wegmueller <toasterson@gmail.com>2023-03-14 18:53:55 +0100
commit595c2aba82937ab954037c1ebe4baf5f88afe9b4 (patch)
tree0b06d997232d990087dd3c85b98f916d165cf401 /src
parent60bf6d7fa9d561820ea562751ee455ccf67d3015 (diff)
downloadrust-libc-595c2aba82937ab954037c1ebe4baf5f88afe9b4.tar.gz
fix: CMSG_HEADER_ALIGNMENT was not properly equal to the C Header file in illumos
Signed-off-by: Till Wegmueller <toasterson@gmail.com>
Diffstat (limited to 'src')
-rw-r--r--src/unix/solarish/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/solarish/mod.rs b/src/unix/solarish/mod.rs
index 88f9cab9d6..1993e18490 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>();