serf: restore patch mistakenly removed (libressl 2.7 fix)

This commit is contained in:
Alessio Sergi 2018-05-03 18:39:52 +02:00
parent cd494b6af1
commit 87830ee196
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
--- buckets/ssl_buckets.c.orig
+++ buckets/ssl_buckets.c
@@ -52,7 +52,7 @@
#define APR_ARRAY_PUSH(ary,type) (*((type *)apr_array_push(ary)))
#endif
-#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L
+#if defined(OPENSSL_VERSION_NUMBER) && OPENSSL_VERSION_NUMBER >= 0x10100000L && !defined(LIBRESSL_VERSION_NUMBER)
#define USE_OPENSSL_1_1_API
#endif

View File

@ -1,7 +1,7 @@
# Template file for 'serf' # Template file for 'serf'
pkgname=serf pkgname=serf
version=1.3.9 version=1.3.9
revision=6 revision=7
nocross=yes nocross=yes
hostmakedepends="scons libressl-devel apr-util-devel" hostmakedepends="scons libressl-devel apr-util-devel"
makedepends="zlib-devel gdbm-devel libressl-devel apr-util-devel" makedepends="zlib-devel gdbm-devel libressl-devel apr-util-devel"