Re: BUG #18026: compile error / fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this function)
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: hofstetter@jomasoft.ch
Cc: pgsql-bugs@lists.postgresql.org
Date: 2023-07-17T16:15:59Z
Lists: pgsql-bugs
PG Bug reporting form <noreply@postgresql.org> writes: > fe-auth.c: In function 'check_expected_areq': > fe-auth.c:807:64: error: 'CHAR_BIT' undeclared (first use in this > function) Hmm. This problem seems straightforward enough to fix, but what I don't understand is why we've not seen it already. We do have a buildfarm animal running on Solaris 11.4 [1], and it's not unhappy. Are you using any unusual build options or toolchain? regards, tom lane [1] https://buildfarm.postgresql.org/cgi-bin/show_history.pl?nm=margay&br=HEAD
Commits
-
Include <limits.h> in fe-auth.c, to get CHAR_BIT reliably.
- efe8d8226929 16.0 landed
- 8fab4b348013 17.0 landed