From: Heikki Linnakangas Date: Thu, 9 Jul 2026 15:34:24 +0000 (+0300) Subject: ssl: Include limits.h to get INT_MAX when using LibreSSL X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f5f569713b871ca6771e6fbaf5d4de16d4df1728;p=thirdparty%2Fpostgresql.git ssl: Include limits.h to get INT_MAX when using LibreSSL When compiling against OpenSSL, the header is indirectly included via openssl/ossl_typ.h from openssl/conf.h, but the LibreSSL version of ossl_typ.h does not include which cause compiler failure due to missing symbol (since ffd080d94fe). Fix by explicitly including . Author: Daniel Gustafsson Discussion: https://www.postgresql.org/message-id/6A9E7815-BD5A-4C31-A515-48159823406B@yesql.se Backpatch-through: 14 --- diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index 3c73071518d..48cec07cefb 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -25,6 +25,7 @@ #include #include #include +#include #include "libpq-fe.h" #include "fe-auth.h"