From 0c5c83c6051688a643194388000ea356a8d055d5 Mon Sep 17 00:00:00 2001 From: Peter Eisentraut Date: Tue, 7 Jul 2020 19:43:22 +0200 Subject: [PATCH] Define OPENSSL_API_COMPAT This avoids deprecation warnings from newer OpenSSL versions (3.0.0 in particular). Discussion: https://www.postgresql.org/message-id/flat/FEF81714-D479-4512-839B-C769D2605F8A%40yesql.se --- src/include/c.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/include/c.h b/src/include/c.h index a904b49a37..03e87ae3a8 100644 --- a/src/include/c.h +++ b/src/include/c.h @@ -1080,6 +1080,14 @@ extern void ExceptionalCondition(const char *conditionName, #define HAVE_UNIX_SOCKETS 1 #endif +/* + * OpenSSL API compatibility level + * + * Set this to the minimum supported version. This avoids deprecation + * warnings when building with newer OpenSSL versions. + */ +#define OPENSSL_API_COMPAT 10001 + /* * Invert the sign of a qsort-style comparison result, ie, exchange negative * and positive integer values, being careful not to get the wrong answer -- 2.27.0