tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.
authorWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2017 09:39:19 +0000 (10:39 +0100)
committerWerner Koch <wk@gnupg.org>
Thu, 12 Jan 2017 09:39:19 +0000 (10:39 +0100)
commit5c0777e1ca02ff1767755c417b64d6f78e02f475
treeb90977dfd0c93a5505b4f8f563dbaf0bd878fcac
parent3c00b52f7cb0fbd756c0bbe5134b8f2d69c60dd1
tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.

* configure.ac (AC_CHECK_HEADERS): Add stdint.h.
* common/t-gettime.c: Include stdint.h.
(UINTMAX_C): Define replacement.
(test_isotime2epoch): Use UINTMAX_C for the >32 bit constants.
--

This is for example the case on 32 bit OpenBSD.

Signed-off-by: Werner Koch <wk@gnupg.org>
common/t-gettime.c
configure.ac