void-packages/srcpkgs/aria2/patches/patch-src_libssl_compat_h.patch
2018-04-26 20:42:59 +02:00

16 lines
602 B
Diff

$OpenBSD: patch-src_libssl_compat_h,v 1.1 2018/02/18 11:12:22 sthen Exp $
Index: src/libssl_compat.h
--- src/libssl_compat.h.orig
+++ src/libssl_compat.h
@@ -43,7 +43,9 @@
#define LIBRESSL_IN_USE 0
#endif // !defined(LIBRESSL_VERSION_NUMBER)
+/* XXX really OPENSSL_110_API... */
#define OPENSSL_101_API \
- (!LIBRESSL_IN_USE && OPENSSL_VERSION_NUMBER >= 0x1010000fL)
+ OPENSSL_VERSION_NUMBER >= 0x1010000fL || \
+ (LIBRESSL_IN_USE && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
#endif // LIBSSL_COMPAT_H