Commit 42ad85ef01e372f1d65b9c561c1895d954450811

Edward Thomson 2016-12-30T16:35:24

Merge pull request #4043 from fudanchii/fudanchii/openbsd Fix BIO_* functions method linking when compiled with libressl (OpenBSD).

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/openssl_stream.h b/src/openssl_stream.h
index b769437..f5e59da 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)
 {