summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2020-07-06 18:22:21 -0600
committerAlan Somers <asomers@gmail.com>2020-07-07 14:16:25 -0600
commit6f2139e1c4466081da4a61e47099ae42fe13a017 (patch)
treed98685895bd1e0dd45de29070eb20df859f75d8f
parentfa894064da187e699872ff9a330be95b131405b1 (diff)
downloadrust-libc-6f2139e1c4466081da4a61e47099ae42fe13a017.tar.gz
Fix _ALIGNBYTES on FreeBSD x86 with Rust <= 1.23.0.
Fixes #1775
-rw-r--r--src/unix/bsd/freebsdlike/freebsd/x86.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/unix/bsd/freebsdlike/freebsd/x86.rs b/src/unix/bsd/freebsdlike/freebsd/x86.rs
index c1181830f9..d3a3f34b0f 100644
--- a/src/unix/bsd/freebsdlike/freebsd/x86.rs
+++ b/src/unix/bsd/freebsdlike/freebsd/x86.rs
@@ -40,7 +40,7 @@ cfg_if! {
pub const _ALIGNBYTES: usize = ::mem::size_of::<::c_long>() - 1;
} else {
#[doc(hidden)]
- pub const _ALIGNBYTES: usize = 8 - 1;
+ pub const _ALIGNBYTES: usize = 4 - 1;
}
}
pub const MINSIGSTKSZ: ::size_t = 2048; // 512 * 4