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=6243ea6c34ac81ed97d9590f21587462eb50d330;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 dd6c4ca56ed..4ee334c5777 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"