From 5eb33c5c7e9d6b703275b680f337691ecfe38f2a Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Sun, 7 Nov 2021 21:34:08 +0000 Subject: Fix [15845d9fd8]: unix/tcl.m4: implicit declaration of exit() in timezone variable checks --- unix/configure | 2 ++ unix/tcl.m4 | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/unix/configure b/unix/configure index 37cf113..0b5fa29 100755 --- a/unix/configure +++ b/unix/configure @@ -14133,6 +14133,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include int main () { @@ -14199,6 +14200,7 @@ cat confdefs.h >>conftest.$ac_ext cat >>conftest.$ac_ext <<_ACEOF /* end confdefs.h. */ #include +#include int main () { diff --git a/unix/tcl.m4 b/unix/tcl.m4 index f3d08ec..6305ef7 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2349,7 +2349,8 @@ AC_DEFUN([SC_TIME_HANDLER], [ # (like convex) have timezone functions, etc. # AC_CACHE_CHECK([long timezone variable], tcl_cv_timezone_long, [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include ]], [[extern long timezone; timezone += 1; exit (0);]])], @@ -2361,7 +2362,8 @@ AC_DEFUN([SC_TIME_HANDLER], [ # On some systems (eg IRIX 6.2), timezone is a time_t and not a long. # AC_CACHE_CHECK([time_t timezone variable], tcl_cv_timezone_time, [ - AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include ]], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include +#include ]], [[extern time_t timezone; timezone += 1; exit (0);]])], -- cgit v0.12