postgres.git / summary / log / commit / refs

commit    0958c3ea4c677e9f5900fbdc60458f5b9bb34a06
Author:   Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date:     Thu Jul 09 15:34:24 2026 +0000
First released in: 14.24, 15.19, 16.15, 17.11, 18.6, 19.0

    ssl: Include limits.h to get INT_MAX when using LibreSSL
    
    When compiling against OpenSSL, the <limits.h> header is indirectly
    included via openssl/ossl_typ.h from openssl/conf.h, but the LibreSSL
    version of ossl_typ.h does not include <limits.h> which cause compiler
    failure due to missing symbol (since ffd080d94fe).  Fix by explicitly
    including <limits.h>.
    
    Author: Daniel Gustafsson <dgustafsson@postgresql.org>
    Discussion: https://www.postgresql.org/message-id/6A9E7815-BD5A-4C31-A515-48159823406B@yesql.se
    Backpatch-through: 14


src/interfaces/libpq/fe-secure-openssl.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c index 2b0a4e6465c..58e0df8874d 100644 --- a/src/interfaces/libpq/fe-secure-openssl.c +++ b/src/interfaces/libpq/fe-secure-openssl.c @@ -25,6 +25,7 @@ #include <signal.h> #include <fcntl.h> #include <ctype.h> +#include <limits.h> #include "libpq-fe.h" #include "fe-auth.h" [parent: 4d0c3eba1dca]