Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8fab4b3

Browse files
committed
Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably.
fe-auth.c references CHAR_BIT since commit3a465cc, but itdid not #include <limits.h>, which per POSIX is where thatsymbol 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 compilingwith --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 parent884eee5 commit8fab4b3

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
#ifdefHAVE_SYS_UCRED_H

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp