diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:34:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-28 09:34:30 +0000 |
commit | 4fc2f55f761d71aae1f145d5aa94ba929cc39676 (patch) | |
tree | 5c1e1db3b46dd4edbe11f612d93cb94b96891ce3 /m4/pdns_check_time_t.m4 | |
parent | Initial commit. (diff) | |
download | dnsdist-4fc2f55f761d71aae1f145d5aa94ba929cc39676.tar.xz dnsdist-4fc2f55f761d71aae1f145d5aa94ba929cc39676.zip |
Adding upstream version 1.7.3.upstream/1.7.3upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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> +]) +]) |