From 6f2139e1c4466081da4a61e47099ae42fe13a017 Mon Sep 17 00:00:00 2001
From: Alan Somers <asomers@gmail.com>
Date: Mon, 6 Jul 2020 18:22:21 -0600
Subject: [PATCH] Fix _ALIGNBYTES on FreeBSD x86 with Rust <= 1.23.0.

Fixes #1775
---
 src/unix/bsd/freebsdlike/freebsd/x86.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/unix/bsd/freebsdlike/freebsd/x86.rs b/src/unix/bsd/freebsdlike/freebsd/x86.rs
index c1181830..d3a3f34b 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
-- 
GitLab