aria2: fix libressl-2.7

This commit is contained in:
Enno Boland 2018-04-23 13:36:25 +02:00
parent b9385c4d17
commit 93a29c32d0
No known key found for this signature in database
GPG key ID: D09964719BDE9971
2 changed files with 17 additions and 1 deletions

View file

@ -0,0 +1,16 @@
$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

View file

@ -1,7 +1,7 @@
# Template file for 'aria2'
pkgname=aria2
version=1.33.1
revision=2
revision=3
build_style=gnu-configure
configure_args="--with-openssl --with-libexpat --without-gnutls
--with-ca-bundle=/etc/ssl/certs/ca-certificates.crt