Content-Length: 257311 | pFad | http://github.com/postgrespro/postgres/commit/8fab4b34801331f1c59352cb0a248be436b60aef

3A Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably. · postgrespro/postgres@8fab4b3 · GitHub
Skip to content

Commit 8fab4b3

Browse files
committed
Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably.
fe-auth.c references CHAR_BIT since commit 3a465cc, 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
1 parent 884eee5 commit 8fab4b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/interfaces/libpq/fe-auth.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
#else
2828
#include <unistd.h>
2929
#include <fcntl.h>
30+
#include <limits.h>
3031
#include <sys/param.h> /* for MAXHOSTNAMELEN on most */
3132
#include <sys/socket.h>
3233
#ifdef HAVE_SYS_UCRED_H

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres/commit/8fab4b34801331f1c59352cb0a248be436b60aef

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy