summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNurahmadie <nurahmadie@gmail.com>2016-12-24 17:43:08 +0700
committerNurahmadie <nurahmadie@gmail.com>2016-12-24 17:43:08 +0700
commit567b83de5434abcc40eeeabb8167979240f27a8f (patch)
tree7b76f07b2f9d880487b176a820365f41000696da
parent75db289a041b1f1084768244e167b953ac7eeaa5 (diff)
downloadlibgit2-567b83de5434abcc40eeeabb8167979240f27a8f.tar.gz
Fix BIO_* functions method linking when compiled with libressl.
ref: https://github.com/gentoo/libressl/blob/672ac74ce7b7cb2e4799b2d66bc0b1b1efa3454e/media-video/ffmpeg/files/ffmpeg-3.2-libressl.patch
-rw-r--r--src/openssl_stream.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl_stream.h b/src/openssl_stream.h
index b769437ae..f5e59dab1 100644
--- a/src/openssl_stream.h
+++ b/src/openssl_stream.h
@@ -27,7 +27,7 @@ extern int git_openssl_stream_new(git_stream **out, const char *host, const char
-# 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)
{