[Pkg-gnupg-commit] [libgpg-error] 04/32: Check the size of the time_t.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Nov 16 01:31:00 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository libgpg-error.
commit bf7eb978597ba07906f0a7490e626c071af1987f
Author: Werner Koch <wk at gnupg.org>
Date: Thu Sep 1 09:48:39 2016 +0200
Check the size of the time_t.
* configure.ac (AC_HEADER_TIME): New.
(AC_CHECK_SIZEOF): Check size of time_t.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
configure.ac | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/configure.ac b/configure.ac
index 61b3b47..1caf655 100644
--- a/configure.ac
+++ b/configure.ac
@@ -184,6 +184,20 @@ AC_C_CONST
AC_CHECK_SIZEOF(int)
AC_CHECK_SIZEOF(long)
AC_CHECK_SIZEOF(long long)
+AC_HEADER_TIME
+AC_CHECK_SIZEOF(time_t,,[[
+#include <stdio.h>
+#if TIME_WITH_SYS_TIME
+# include <sys/time.h>
+# include <time.h>
+#else
+# if HAVE_SYS_TIME_H
+# include <sys/time.h>
+# else
+# include <time.h>
+# endif
+#endif
+]])
# Find a 64 bit integer type to be used instead of off_t. We prefer
# the standard integer types over int64_t and finally try long long.
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/libgpg-error.git
More information about the Pkg-gnupg-commit
mailing list