summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authornijtmans@users.sourceforge.net <jan.nijtmans>2012-03-15 21:14:05 (GMT)
committernijtmans@users.sourceforge.net <jan.nijtmans>2012-03-15 21:14:05 (GMT)
commitfe3d883e70f81a1803e98e176ae072cb1748e512 (patch)
tree208a77acdb455c105e739d589128c3dd644af53e /unix/tclUnixPort.h
parent23b4ddf7c02459809ab3a8256c02a0362dcf9f88 (diff)
parent50df7d58f017fa63b1b1ebc733d1e3cac412fe0d (diff)
downloadtcl-fe3d883e70f81a1803e98e176ae072cb1748e512.zip
tcl-fe3d883e70f81a1803e98e176ae072cb1748e512.tar.gz
tcl-fe3d883e70f81a1803e98e176ae072cb1748e512.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 2666fb5..48aef9c 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -78,7 +78,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