summaryrefslogtreecommitdiffstats
path: root/unix/tcl.m4
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-07 21:42:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-07 21:42:09 (GMT)
commit3f060e9d6c7c470e5f45a2f449201e35d8f1e6e0 (patch)
treeba503c938a38b78fea0272d7c829cbc26753d942 /unix/tcl.m4
parent6eceb08de21bddce6cacfd581a5b3bc08a1a431c (diff)
parent5eb33c5c7e9d6b703275b680f337691ecfe38f2a (diff)
downloadtcl-3f060e9d6c7c470e5f45a2f449201e35d8f1e6e0.zip
tcl-3f060e9d6c7c470e5f45a2f449201e35d8f1e6e0.tar.gz
tcl-3f060e9d6c7c470e5f45a2f449201e35d8f1e6e0.tar.bz2
Merge 8.6
Diffstat (limited to 'unix/tcl.m4')
-rw-r--r--unix/tcl.m46
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);]])],