summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2017-06-07 07:38:06 +0200
committerPatrick Steinhardt <ps@pks.im>2017-06-07 07:38:06 +0200
commit40139fe6e62e487e6ccae26df6f9b1ddc9b30b36 (patch)
treea30870cd62a7195ab5b4ac3ee36ae68901b2b4fb
parentdd0aa811dd329f5040c70f7aac514b3757eb2453 (diff)
parentf28744a5a3b11e05d64c4696ad5e9399d0b23b96 (diff)
downloadlibgit2-40139fe6e62e487e6ccae26df6f9b1ddc9b30b36.tar.gz
Merge pull request #4251 from Keruspe/master
Fix build with libressl
-rw-r--r--src/openssl_stream.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openssl_stream.c b/src/openssl_stream.c
index 841dcce50..759c5015f 100644
--- a/src/openssl_stream.c
+++ b/src/openssl_stream.c
@@ -103,7 +103,7 @@ int git_openssl_stream_global_init(void)
ssl_opts |= SSL_OP_NO_COMPRESSION;
#endif
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
SSL_load_error_strings();
OpenSSL_add_ssl_algorithms();
#else