diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-07 23:43:57 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-11-07 23:43:57 (GMT) |
commit | 106aa66bfe25b9415548008d35887d3ae72188ff (patch) | |
tree | 31944e240217ad648e3d8630574bcd5430b78f38 /unix | |
parent | 91044582d554a70f14ff9e88c489ac63596c5c84 (diff) | |
parent | 9c88848c95f3fa2fc84dca2a6e29741a093d256b (diff) | |
download | tk-106aa66bfe25b9415548008d35887d3ae72188ff.zip tk-106aa66bfe25b9415548008d35887d3ae72188ff.tar.gz tk-106aa66bfe25b9415548008d35887d3ae72188ff.tar.bz2 |
Merge 8.6
Diffstat (limited to 'unix')
-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 88b2be3..e2bf286 100644 --- a/unix/tcl.m4 +++ b/unix/tcl.m4 @@ -2150,7 +2150,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);]])], @@ -2162,7 +2163,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);]])], |