Tcl Source Code

Artifact [cb1a9a54b0]
Login

Artifact cb1a9a54b0b497144e287050e3348b23944a1e41:

Attachment "diffs" to ticket [1387164fff] added by nobody 2005-12-21 21:57:38. Also attachment "diffs" to ticket [1387154fff] added by nobody 2005-12-21 21:41:40.
--- old/tcl8.4.12/unix/tclUnixPort.h	2005-12-06 09:01:07.000000000 +0000
+++ tcl8.4.12/unix/tclUnixPort.h	2005-12-21 14:01:35.640625000 +0000
@@ -95,6 +95,14 @@
 #   include <sys/select.h>
 #endif
 #include <sys/stat.h>
+
+#ifdef __CYGWIN__
+#   define timezone _timezone
+    typedef long TIMEZONE_t;
+#else	/* !__CYGWIN__ */
+    typedef int TIMEZONE_t;
+#endif	/* !__CYGWIN__ */
+
 #if TIME_WITH_SYS_TIME
 #   include <sys/time.h>
 #   include <time.h>
--- old/tcl8.4.12/generic/tclClock.c	2005-03-15 16:29:53.000000000 +0000
+++ tcl8.4.12/generic/tclClock.c	2005-12-21 14:01:16.890625000 +0000
@@ -266,8 +266,8 @@
     int result;
     time_t tclockVal;
 #if !defined(HAVE_TM_ZONE) && !defined(WIN32)
-    int savedTimeZone = 0;	/* lint. */
-    char *savedTZEnv = NULL;	/* lint. */
+    TIMEZONE_t savedTimeZone = 0;	/* lint. */
+    char *savedTZEnv = NULL;		/* lint. */
 #endif
 
 #ifdef HAVE_TZSET