summaryrefslogtreecommitdiffstats
path: root/unix
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2013-05-06 07:22:17 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2013-05-06 07:22:17 (GMT)
commit8ddc8d3dc4c93f40ea560dd246e97226baee3889 (patch)
treef11783011695cf570c007373ac83ba242464253e /unix
parent640f5033115f3d55ca747f29780ae7575659be1a (diff)
parent625110a91f1605437824ffe0b0e82b3675340463 (diff)
downloadtcl-8ddc8d3dc4c93f40ea560dd246e97226baee3889.zip
tcl-8ddc8d3dc4c93f40ea560dd246e97226baee3889.tar.gz
tcl-8ddc8d3dc4c93f40ea560dd246e97226baee3889.tar.bz2
Add support for Cygwin64, which has a 64-bit "long" type.
Binary compatibility with win64 requires that all stub entries use 32-bit long's, therefore the need for various wrapper functions/macros. For Tcl 9 a better solution is needed, but that cannot be done without introducing binary incompatibility.
Diffstat (limited to 'unix')
-rw-r--r--unix/tclUnixPort.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 7cfeec0..08a4f44 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -95,9 +95,11 @@ typedef off_t Tcl_SeekOffset;
# define USE_PUTENV 1
# define USE_PUTENV_FOR_UNSET 1
/* On Cygwin, the environment is imported from the Cygwin DLL. */
+#ifndef __x86_64__
# define environ __cygwin_environ
-# define timezone _timezone
extern char **__cygwin_environ;
+#endif
+# define timezone _timezone
extern int TclOSstat(const char *name, void *statBuf);
extern int TclOSlstat(const char *name, void *statBuf);
#elif defined(HAVE_STRUCT_STAT64) && !defined(__APPLE__)