From 5c0777e1ca02ff1767755c417b64d6f78e02f475 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Thu, 12 Jan 2017 10:39:19 +0100 Subject: 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 --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index fa206c991..f929cb60f 100644 --- a/configure.ac +++ b/configure.ac @@ -1258,7 +1258,7 @@ AC_MSG_NOTICE([checking for header files]) AC_HEADER_STDC AC_CHECK_HEADERS([string.h unistd.h langinfo.h termio.h locale.h getopt.h \ pty.h utmp.h pwd.h inttypes.h signal.h sys/select.h \ - signal.h]) + stdint.h signal.h]) AC_HEADER_TIME -- cgit v1.2.3