diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-07 21:34:08 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-07 21:34:08 (GMT) |
commit | 5eb33c5c7e9d6b703275b680f337691ecfe38f2a (patch) | |
tree | 5ad2de6271470afa2efc575a09fa7e951771ee38 /unix/tcl.m4 | |
parent | 36909daded61c42954adfbd6350c5a0cb34af2ee (diff) | |
download | tcl-5eb33c5c7e9d6b703275b680f337691ecfe38f2a.zip tcl-5eb33c5c7e9d6b703275b680f337691ecfe38f2a.tar.gz tcl-5eb33c5c7e9d6b703275b680f337691ecfe38f2a.tar.bz2 |
Fix [15845d9fd8]: unix/tcl.m4: implicit declaration of exit() in timezone variable checks
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r-- | unix/tcl.m4 | 6 |
1 files changed, 4 insertions, 2 deletions
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 <time.h>]], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h> +#include <stdlib.h>]], [[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 <time.h>]], + AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <time.h> +#include <stdlib.h>]], [[extern time_t timezone; timezone += 1; exit (0);]])], |