devel/libgit2: fix build with libressl

PR:		219362
Submitted by:	tobik
This commit is contained in:
William Grzybowski 2017-05-18 22:34:56 +00:00
parent b388e90063
commit 496d59403b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=441203
2 changed files with 16 additions and 0 deletions

View File

@ -2,6 +2,7 @@
PORTNAME= libgit2
PORTVERSION= 0.25.1
PORTREVISION= 1
DISTVERSIONPREFIX= v
CATEGORIES= devel

View File

@ -0,0 +1,15 @@
Fix build with LibreSSL
https://github.com/libgit2/libgit2/commit/42ad85e
--- src/openssl_stream.h.orig 2017-01-09 20:26:45 UTC
+++ src/openssl_stream.h
@@ -27,7 +27,7 @@ extern int git_openssl_stream_new(git_stream **out, co
-# if OPENSSL_VERSION_NUMBER < 0x10100000L
+# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
GIT_INLINE(BIO_METHOD*) BIO_meth_new(int type, const char *name)
{