summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--win/tclWinPort.h9
2 files changed, 13 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 29a5c67..415d99e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-07-17 Mo DeJong <mdejong@redhat.com>
+
+ * win/tclWinPort.h: Add Cygwin specific defines for environ
+ and timezone variables.
+
2001-07-17 Andreas Kupries <andreas_kupries@users.sourceforge.net>
* generic/tclIO.c (GetInput): Fixed [SF #427196]. Memory was
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index efc2441..3b223b8 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -10,7 +10,7 @@
* See the file "license.terms" for information on usage and redistribution
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*
- * RCS: @(#) $Id: tclWinPort.h,v 1.15 2001/07/16 23:30:16 mdejong Exp $
+ * RCS: @(#) $Id: tclWinPort.h,v 1.16 2001/07/17 18:33:24 mdejong Exp $
*/
#ifndef _TCLWINPORT
@@ -343,6 +343,13 @@ typedef float *TCHAR;
# endif
#endif /* _MSC_VER || __MINGW32__ */
+#ifdef __CYGWIN__
+/* On cygwin32, the environment is imported from the cygwin32 DLL. */
+ DLLIMPORT extern char **__cygwin_environ;
+# define environ __cygwin_environ
+# define timezone _timezone
+#endif /* __CYGWIN__ */
+
/*
* There is no platform-specific panic routine for Windows in the Tcl internals.
*/