summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-15 21:03:06 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2012-03-15 21:03:06 (GMT)
commit5841a02367f05ffbefe36849606d77718a556cb2 (patch)
tree925f152d32d79c91ee0cf085598a2e2ec7210e16 /unix/tclUnixPort.h
parent694826cd4f14b00837bf163b8e22f3c01dd2b2db (diff)
parent87085c466a1fdc5cfdb3cc6ce2659b4371c0b1b3 (diff)
downloadtcl-5841a02367f05ffbefe36849606d77718a556cb2.zip
tcl-5841a02367f05ffbefe36849606d77718a556cb2.tar.gz
tcl-5841a02367f05ffbefe36849606d77718a556cb2.tar.bz2
[Bug 3288345] Wrong Tcl_StatBuf used on Cygwin
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index e4008c9..fef748b 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -73,7 +73,12 @@ typedef off_t Tcl_SeekOffset;
# define TclOSopen open
#endif
-#ifdef HAVE_STRUCT_STAT64
+#ifdef __CYGWIN__
+MODULE_SCOPE int TclOSstat(const char *name, Tcl_StatBuf *statBuf);
+MODULE_SCOPE int TclOSlstat(const char *name, Tcl_StatBuf *statBuf);
+#undef HAVE_STRUCT_STAT_ST_BLOCKS
+#undef HAVE_STRUCT_STAT_ST_BLKSIZE
+#elif defined(HAVE_STRUCT_STAT64)
# define TclOSstat stat64
# define TclOSlstat lstat64
#else