opnsense-ports/devel/libgit2/files/patch-src_openssl__stream.h
Franco Fichtner 4a0a2cc590 */*: sync with upstream
Taken from: FreeBSD
2017-05-20 15:18:08 +02:00

15 lines
427 B
C

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)
{