From: Willy Tarreau Date: Sat, 28 Aug 2021 10:06:51 +0000 (+0200) Subject: BUILD/MINOR: ssl: avoid a build warning on LIBRESSL_VERSION with -Wundef X-Git-Tag: v2.5-dev5~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e5542e9f45bd72ef3975f1dc4d4193a824f5e03;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/include/haproxy/openssl-compat.h b/include/haproxy/openssl-compat.h index eb96703a56..95d924d653 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