From b418e6b0f0c2335f782fe6bc53c1df5f2233e09f Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Sat, 12 Jan 2019 00:11:11 +0100 Subject: fixup check the define too --- lib/vtls/openssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/vtls/openssl.c b/lib/vtls/openssl.c index 161e520e9..6b050a9ec 100644 --- a/lib/vtls/openssl.c +++ b/lib/vtls/openssl.c @@ -3774,7 +3774,7 @@ static size_t Curl_ossl_version(char *buffer, size_t size) { #ifdef OPENSSL_IS_BORINGSSL return msnprintf(buffer, size, OSSL_PACKAGE); -#elif defined(HAVE_OPENSSL_VERSION) +#elif defined(HAVE_OPENSSL_VERSION) && defined(OPENSSL_VERSION_STRING) return msnprintf(buffer, size, "%s/%s", OSSL_PACKAGE, OpenSSL_version(OPENSSL_VERSION_STRING)); #else -- cgit v1.2.1