diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2023-07-17 16:54:54 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2023-07-17 16:54:54 -0400 |
commit | 8fab4b34801331f1c59352cb0a248be436b60aef (patch) | |
tree | f3cecaa354478970a3466336d334cba9e4c485e9 /src/interfaces/libpq/fe-auth.c | |
parent | 884eee5bfb5ab902413dc00ccee5b3e3f1c505d0 (diff) | |
download | postgresql-8fab4b34801331f1c59352cb0a248be436b60aef.tar.gz postgresql-8fab4b34801331f1c59352cb0a248be436b60aef.zip |
Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably.
fe-auth.c references CHAR_BIT since commit 3a465cc67, but it
did not #include <limits.h>, which per POSIX is where that
symbol is defined. This escaped notice so far because
(a) on most platforms, <sys/param.h> pulls in <limits.h>,
(b) even if yours doesn't, OpenSSL pulls it in, so compiling
with --with-openssl masks the omission.
Per bug #18026 from Marcel Hofstetter. Back-patch to v16.
Discussion: https://postgr.es/m/18026-d5bb69f79cd16203@postgresql.org
Diffstat (limited to 'src/interfaces/libpq/fe-auth.c')
-rw-r--r-- | src/interfaces/libpq/fe-auth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/libpq/fe-auth.c b/src/interfaces/libpq/fe-auth.c index 3ed8c6c89ba..887ca5e9e1b 100644 --- a/src/interfaces/libpq/fe-auth.c +++ b/src/interfaces/libpq/fe-auth.c @@ -27,6 +27,7 @@ #else #include <unistd.h> #include <fcntl.h> +#include <limits.h> #include <sys/param.h> /* for MAXHOSTNAMELEN on most */ #include <sys/socket.h> #ifdef HAVE_SYS_UCRED_H |