libgit2: fix libressl-2.7

Import OpenBSD patches.
This commit is contained in:
Enno Boland 2018-04-23 12:50:19 +02:00
parent e6ba8709df
commit 4a1022c5ae
No known key found for this signature in database
GPG Key ID: D09964719BDE9971
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-src_openssl_stream_h,v 1.8 2018/03/19 18:28:12 jasper Exp $
Index: src/openssl_stream.h
--- src/openssl_stream.h.orig
+++ src/openssl_stream.h
@@ -27,7 +27,8 @@ extern int git_openssl_stream_new(git_stream **out, co
-# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+# if OPENSSL_VERSION_NUMBER < 0x10100000L || \
+ (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x2070000fL)
GIT_INLINE(BIO_METHOD*) BIO_meth_new(int type, const char *name)
{

View File

@ -1,7 +1,7 @@
# Template file for 'libgit2'
pkgname=libgit2
version=0.26.3
revision=1
revision=2
build_style=cmake
hostmakedepends="python git pkg-config"
makedepends="zlib-devel libressl-devel http-parser-devel libssh2-devel"