1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-19 11:40:31 -04:00
ports/devel/libgit2/files/patch-src_openssl__stream.h
Bernard Spil 69eced1838 devel/libgit2: Fix build with LibreSSL 2.7
- LibreSSL 2.7 adds OpenSSL 1.1 API

PR:		226954
Approved by:	wg (maintainer)
2018-03-27 12:17:06 +00:00

11 lines
416 B
C

--- src/openssl_stream.h.orig 2017-06-14 11:31:20 UTC
+++ src/openssl_stream.h
@@ -27,7 +27,7 @@ extern int git_openssl_stream_new(git_st
-# if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
+# if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20700000L)
GIT_INLINE(BIO_METHOD*) BIO_meth_new(int type, const char *name)
{