summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormdejong <mdejong>2001-07-17 18:33:24 (GMT)
committermdejong <mdejong>2001-07-17 18:33:24 (GMT)
commit78c31141ab5b3f258a7ba76c536173acdd2f5d6a (patch)
tree2d7c8176ca99df149e807336459a4918acf0241b
parenta79f038e6861042e3ab4d463e61d3ec90d8772b5 (diff)
downloadtcl-78c31141ab5b3f258a7ba76c536173acdd2f5d6a.zip
tcl-78c31141ab5b3f258a7ba76c536173acdd2f5d6a.tar.gz
tcl-78c31141ab5b3f258a7ba76c536173acdd2f5d6a.tar.bz2
* win/tclWinPort.h: Add Cygwin specific defines for environ
and timezone variables.
-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.
*/