From e12ee79b467ca32a5c723ec47e97a87e84829479 Mon Sep 17 00:00:00 2001 From: Theo Buehler Date: Sun, 21 Jan 2024 18:34:26 +0100 Subject: [PATCH] Make _STACK opaque for LibreSSL >= 3.9.0 --- openssl-sys/src/handwritten/stack.rs | 2 ++ openssl-sys/src/macros.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openssl-sys/src/handwritten/stack.rs b/openssl-sys/src/handwritten/stack.rs index 7f2feef6d7..7bc81359d8 100644 --- a/openssl-sys/src/handwritten/stack.rs +++ b/openssl-sys/src/handwritten/stack.rs @@ -3,6 +3,8 @@ use libc::*; cfg_if! { if #[cfg(ossl110)] { pub enum OPENSSL_STACK {} + } else if #[cfg(libressl390)] { + pub enum _STACK {} } else { #[repr(C)] pub struct _STACK { diff --git a/openssl-sys/src/macros.rs b/openssl-sys/src/macros.rs index 96523db8f4..e1c1427c67 100644 --- a/openssl-sys/src/macros.rs +++ b/openssl-sys/src/macros.rs @@ -58,7 +58,7 @@ macro_rules! cfg_if { macro_rules! stack { ($t:ident) => { cfg_if! { - if #[cfg(ossl110)] { + if #[cfg(any(ossl110, libressl390))] { pub enum $t {} } else { #[repr(C)]