--- src/proxy/cargo-crates/s2n-tls-0.3.36/src/init.rs.orig 2026-04-17 13:03:03 UTC +++ src/proxy/cargo-crates/s2n-tls-0.3.36/src/init.rs @@ -132,6 +132,13 @@ mod mem { // `max_align_t` is a type with the largest alignment of any scalar // type, so aligning to its requirement will produce an alignment // suitable to the C requirement for malloc. + #[cfg(all(target_os = "freebsd", target_arch = "aarch64"))] + // The `libc` crate does not expose `max_align_t` for + // aarch64-unknown-freebsd. On FreeBSD/aarch64, `max_align_t` is + // `long double` whose alignment is 16 bytes; `u128` has the same + // 16-byte alignment and is a stable substitute. + const ALIGNMENT: usize = align_of::(); + #[cfg(not(all(target_os = "freebsd", target_arch = "aarch64")))] const ALIGNMENT: usize = align_of::(); // * align must not be zero,