diff options
author | Pavel Janík <Pavel@Janik.cz> | 2016-02-11 21:20:12 +0100 |
---|---|---|
committer | Pavel Janík <Pavel@Janik.cz> | 2016-02-12 07:01:33 +0100 |
commit | a0a17b3e441ac82bc64ca183d458258ded26c9ed (patch) | |
tree | d8a92eee442efc3a331d13670356aeae0e3fdf69 | |
parent | 3cd836c1d855b92e7c73ab31979f471c4f8dad68 (diff) | |
download | bitcoin-a0a17b3e441ac82bc64ca183d458258ded26c9ed.tar.xz |
LibreSSL doesn't define OPENSSL_VERSION, use LIBRESSL_VERSION_TEXT instead
-rw-r--r-- | src/init.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 645c8f94b1..231fb18011 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1034,8 +1034,10 @@ bool AppInit2(boost::thread_group& threadGroup, CScheduler& scheduler) #if (OPENSSL_VERSION_NUMBER < 0x10100000L) LogPrintf("Using OpenSSL version %s\n", SSLeay_version(SSLEAY_VERSION)); -#else +#elif defined OPENSSL_VERSION LogPrintf("Using OpenSSL version %s\n", OpenSSL_version(OPENSSL_VERSION)); +#elif defined LIBRESSL_VERSION_TEXT + LogPrintf("Using %s\n", LIBRESSL_VERSION_TEXT); #endif #ifdef ENABLE_WALLET |