summaryrefslogtreecommitdiffstats
path: root/generic/tclPort.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-01-06 22:02:04 (GMT)
committernijtmans <nijtmans>2010-01-06 22:02:04 (GMT)
commitb849702961a75aea821820214c8aac96f91a6c7d (patch)
treeab754c96e6eaf101337648b0333d2b873ecb83c8 /generic/tclPort.h
parent0ca164f2c3f073eea996040b76aa89e44fe81e1a (diff)
downloadtcl-b849702961a75aea821820214c8aac96f91a6c7d.zip
tcl-b849702961a75aea821820214c8aac96f91a6c7d.tar.gz
tcl-b849702961a75aea821820214c8aac96f91a6c7d.tar.bz2
Fix environment tests under CYGWIN
Diffstat (limited to 'generic/tclPort.h')
-rw-r--r--generic/tclPort.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/generic/tclPort.h b/generic/tclPort.h
index efc5a73..f2cdfb4 100644
--- a/generic/tclPort.h
+++ b/generic/tclPort.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: tclPort.h,v 1.15.10.1 2008/11/04 23:56:59 hobbs Exp $
+ * RCS: @(#) $Id: tclPort.h,v 1.15.10.2 2010/01/06 22:02:05 nijtmans Exp $
*/
#ifndef _TCLPORT
@@ -27,6 +27,16 @@
# include "tclUnixPort.h"
#endif
+#if defined(__CYGWIN__)
+# define USE_PUTENV 1
+# define USE_PUTENV_FOR_UNSET 1
+/* On Cygwin, the environment is imported from the Cygwin DLL. */
+ DLLIMPORT extern char **__cygwin_environ;
+ DLLIMPORT extern int cygwin_conv_to_win32_path(const char *, char *);
+# define environ __cygwin_environ
+# define timezone _timezone
+#endif
+
#if !defined(LLONG_MIN)
# ifdef TCL_WIDE_INT_IS_LONG
# define LLONG_MIN LONG_MIN