From: Daniel Gustafsson Date: Fri, 26 Jul 2024 17:10:37 +0000 (+0200) Subject: Fix building with MSVC for TLS session disabling X-Git-Tag: REL_12_20~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6dd0b8637b3577ab710738164139cf711164527;p=thirdparty%2Fpostgresql.git Fix building with MSVC for TLS session disabling Commit 274bbced85 omitted the required changes for the MSVC build system in v16 through v12. Per buildfarm animal hamerkop. Discussion: https://postgr.es/m/7919238F-723C-4113-9742-EBCE7A76A6B4@yesql.se --- diff --git a/src/include/pg_config.h.win32 b/src/include/pg_config.h.win32 index a8c0d2c35cf..dd751e557b3 100644 --- a/src/include/pg_config.h.win32 +++ b/src/include/pg_config.h.win32 @@ -389,6 +389,9 @@ /* Define to 1 if you have the `SSL_clear_options' function. */ #define HAVE_SSL_CLEAR_OPTIONS 1 +/* Define to 1 if you have the `SSL_CTX_set_num_tickets' function. */ +/* #undef HAVE_SSL_CTX_SET_NUM_TICKETS */ + /* Define to 1 if you have the `SSL_get_current_compression' function. */ #define HAVE_SSL_GET_CURRENT_COMPRESSION 1 diff --git a/src/tools/msvc/Solution.pm b/src/tools/msvc/Solution.pm index a7e5fdbda94..ec232802e45 100644 --- a/src/tools/msvc/Solution.pm +++ b/src/tools/msvc/Solution.pm @@ -266,6 +266,7 @@ sub GenerateFiles || ($digit1 >= '1' && $digit2 >= '1' && $digit3 >= '1')) { print $o "#define HAVE_X509_GET_SIGNATURE_INFO 1\n"; + print $o "#define HAVE_SSL_CTX_SET_NUM_TICKETS 1\n"; } # Symbols needed with OpenSSL 1.1.0 and above.