diff options
author | Werner Koch <wk@gnupg.org> | 2016-09-01 09:48:39 +0200 |
---|---|---|
committer | Werner Koch <wk@gnupg.org> | 2016-09-01 09:48:39 +0200 |
commit | bf7eb978597ba07906f0a7490e626c071af1987f (patch) | |
tree | 1839d1dddfcd9c3b72d0a858eb6e35eddeb085f1 | |
parent | bc3e817bd7e671975f94bae20cbbf9a91fe3353b (diff) | |
download | libgpg-error-bf7eb978597ba07906f0a7490e626c071af1987f.tar.gz |
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@gnupg.org>
-rw-r--r-- | configure.ac | 14 |
1 files changed, 14 insertions, 0 deletions
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. |