diff options
Diffstat (limited to 'm4/pdns_check_time_t.m4')
-rw-r--r-- | m4/pdns_check_time_t.m4 | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/m4/pdns_check_time_t.m4 b/m4/pdns_check_time_t.m4 new file mode 100644 index 0000000..c3d274b --- /dev/null +++ b/m4/pdns_check_time_t.m4 @@ -0,0 +1,7 @@ +AC_DEFUN([PDNS_CHECK_TIME_T], [ +AX_COMPILE_CHECK_SIZEOF(time_t) +AS_IF([test $ac_size -lt 8], [AC_MSG_ERROR([size of time_t is $ac_size, which is not large enough to fix the y2k38 bug])]) +AX_CHECK_SIGN([time_t], [:], [AC_MSG_ERROR([time_t is unsigned, PowerDNS code relies on it being signed])], [ + #include <sys/types.h> +]) +]) |