summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-07 23:43:12 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-11-07 23:43:12 (GMT)
commit9c88848c95f3fa2fc84dca2a6e29741a093d256b (patch)
tree79573042fa7363dc1456a507f06886e46aa4c58f
parent558e5d5db7973e1562969c62e46ca88550cada21 (diff)
downloadtk-9c88848c95f3fa2fc84dca2a6e29741a093d256b.zip
tk-9c88848c95f3fa2fc84dca2a6e29741a093d256b.tar.gz
tk-9c88848c95f3fa2fc84dca2a6e29741a093d256b.tar.bz2
Sync unix/tcl.m4 with Tcl (no effect on configure script)
-rw-r--r--unix/tcl.m46
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);]])],