Home GnuPG
Diffusion GnuPG 5c0777e1ca02

tests: Fix t-gettime for a time_t of 64 and a long of 32 bit.
5c0777e1ca02Unpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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>

Details

Provenance
wernerAuthored on Jan 12 2017, 10:39 AM
Parents
rG3c00b52f7cb0: build: Make autogen.sh more POSIX friendly.
Branches
Unknown
Tags
Unknown

Event Timeline