| From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
|---|---|
| To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
| Subject: | pgsql: Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably. |
| Date: | 2023-07-17 20:55:02 |
| Message-ID: | E1qLVFG-000sdh-CH@gemulon.postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-committers |
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
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/8fab4b34801331f1c59352cb0a248be436b60aef
Modified Files
--------------
src/interfaces/libpq/fe-auth.c | 1 +
1 file changed, 1 insertion(+)
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Michael Paquier | 2023-07-18 04:45:25 | pgsql: Fix recovery of 2PC transaction during crash recovery |
| Previous Message | Nathan Bossart | 2023-07-17 18:45:24 | pgsql: Remove db_user_namespace. |