summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Tarreau <w@1wt.eu>2021-08-28 12:06:51 +0200
committerWilly Tarreau <w@1wt.eu>2021-08-28 12:06:51 +0200
commit6e5542e9f45bd72ef3975f1dc4d4193a824f5e03 (patch)
tree9943b396becbe6f588d6a213b7d4ec4012d21862
parent33056436c7a8cdf49fc080ccd3e3e8bd21eea26c (diff)
downloadhaproxy-6e5542e9f45bd72ef3975f1dc4d4193a824f5e03.tar.gz
BUILD/MINOR: ssl: avoid a build warning on LIBRESSL_VERSION with -Wundef
Openssl-compat emits a warning for the test on LIBRESSL_VERSION that might be underfined, if built with -Wundef. The fix is easy, let's do it. Related to GH issue #1369.
-rw-r--r--include/haproxy/openssl-compat.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h
index eb96703a5..95d924d65 100644
--- a/include/haproxy/openssl-compat.h
+++ b/include/haproxy/openssl-compat.h
@@ -41,7 +41,7 @@
#define OpenSSL_version_num SSLeay
#endif
-#if (LIBRESSL_VERSION_NUMBER >= 0x2070100fL) || defined(OPENSSL_IS_BORINGSSL) || (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L))
+#if (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER >= 0x2070100fL) || defined(OPENSSL_IS_BORINGSSL) || (!defined(LIBRESSL_VERSION_NUMBER) && (OPENSSL_VERSION_NUMBER >= 0x10100000L))
#define HAVE_SSL_EXTRACT_RANDOM
#endif