LFS-RPM/SOURCES/libssh2-1.10.0-libressl.patch

14 lines
417 B
Diff
Raw Permalink Normal View History

2023-05-13 19:13:32 +08:00
diff -ur a/src/openssl.h b/src/openssl.h
--- a/src/openssl.h 2023-05-13 03:52:34.322982701 -0700
+++ b/src/openssl.h 2023-05-13 03:55:46.175978837 -0700
@@ -58,7 +58,8 @@
#include <openssl/rand.h>
#if OPENSSL_VERSION_NUMBER >= 0x10100000L && \
- !defined(LIBRESSL_VERSION_NUMBER)
+ !defined(LIBRESSL_VERSION_NUMBER) || \
+ LIBRESSL_VERSION_NUMBER >= 0x3050000fL
# define HAVE_OPAQUE_STRUCTS 1
#endif