]> Savannah Git Hosting - gnulib.git/commit
year2038: port to unusual time_t platforms
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2021 16:30:50 +0000 (09:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 2 Aug 2021 16:35:08 +0000 (09:35 -0700)
commit784f55e5c59abde4eabf4e08169d1c50363280b4
tree627b1c0923cc14c0d1a2246d453f36a06c52c1d9
parent9b69ffb766a2f6c0a06ad4b71040209534fde094
year2038: port to unusual time_t platforms

* m4/year2038.m4 (gl_YEAR2038_TEST_INCLUDES): Check that time_t
can go to 2**32 - 1, not to 2**63 - 1, as the former is enough to
be year 2038 safe.  Unsigned 32-bit time_t (AmigaOS) and signed
40-bit time_t (Unisys ClearPath) have occurred in the wild, and
even if Gnulib code is rarely or never ported to them there’s no
need to exclude them merely because of year 2038 issues.
(gl_YEAR2038_BODY): Adjust messages to match.  Use 2**32 - 1,
not 2**32, as the test timestamp, to allow unsigned 32-bit time_t.
ChangeLog
m4/year2038.m4