AC_RUN_IFELSE(
AC_LANG_PROGRAM(
[[#include <time.h>]],
- [[if (sizeof(time_t) != 32) return 1; ]]
+ [[if (sizeof(time_t) != 4) return 1; ]]
),
[ AC_MSG_RESULT([time_t is 32 bit])
AC_DEFINE([TIME_T_IS_32BIT])
[ AC_RUN_IFELSE(
AC_LANG_PROGRAM(
[[#include <time.h>]],
- [[if (sizeof(time_t) != 64) return 1; ]]
+ [[if (sizeof(time_t) != 8) return 1; ]]
),
[
AC_MSG_RESULT([time_t is 64 bit])
#ifdef TIME_T_IS_64BIT
temp = strtoll((char *)text,NULL, 0);
#else
- if (sizeof(time_t) == 32){
+ if (sizeof(time_t) == 4){
temp = strtol((char *)text,NULL, 0);
} else {
temp = strtoll((char *)text,NULL, 0);