> On 7 Jul 2026, at 17:58, Heikki Linnakangas <[email protected]> wrote:
> Committed and backpatched to all supported versions. Thanks everyone!
Sorry for coming to this thread late. When compiling against a local LibreSSL
on macOS I get an error on INT_MAX missing:
../src/interfaces/libpq/fe-secure-openssl.c:253:22: error: use of undeclared
identifier 'INT_MAX'
else if (pending == INT_MAX)
^
1 error generated.
AFAICS it's because openssl/conf.h includes openssl/ossl_typ.h which in turn
includes <limits.h> but the LibreSSL counterpart does not. That being said, it
clearly works in the buildfarm where we have LibreSSL animals on OpenBSD so it
must get pulled in indirectly from somewhere else there. This might be
isolated to macOS builds, but I don't have other systems with LibreSSL handy so
not sure. My LibreSSL installation is a libressl_portable locally compiled
which further may explain differences?
Any objections to the attached to make compilation pass when building against
LibreSSL on macOS (and possibly elsewhere)?
--
Daniel Gustafsson
0001-ssl-Include-limits.h-to-get-INT_MAX-when-using-Libre.patch
Description: Binary data
