summaryrefslogtreecommitdiffstats
path: root/win/tclWinPort.h
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-21 08:08:36 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2011-04-21 08:08:36 (GMT)
commitfbf4c9eb49f2ba409bbfa02714bb0bceb8ea0fe7 (patch)
treeb0b93eb5ba78408fab27e7c5e6c0982407cc140a /win/tclWinPort.h
parentd44ed1cc71d38997f571c039d7816ceaa64a323f (diff)
downloadtcl-fbf4c9eb49f2ba409bbfa02714bb0bceb8ea0fe7.zip
tcl-fbf4c9eb49f2ba409bbfa02714bb0bceb8ea0fe7.tar.gz
tcl-fbf4c9eb49f2ba409bbfa02714bb0bceb8ea0fe7.tar.bz2
fix for [Bug 3288345]: Wrong Tcl_StatBufused on MinGW.
Make sure that all _WIN32 compilers use exactly the same layout for Tcl_StatBuf - the one used by MSVC6 - in all situations.
Diffstat (limited to 'win/tclWinPort.h')
-rw-r--r--win/tclWinPort.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 6e8dcfb..5115dab 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -95,6 +95,25 @@
#endif
/*
+ * Not all mingw32 versions have this struct.
+ */
+#if !defined(__BORLANDC__) && !defined(_MSC_VER) && !defined(_WIN64) && !defined(HAVE_STRUCT_STAT32I64)
+ struct _stat32i64 {
+ _dev_t st_dev;
+ _ino_t st_ino;
+ unsigned short st_mode;
+ short st_nlink;
+ short st_uid;
+ short st_gid;
+ _dev_t st_rdev;
+ __int64 st_size;
+ long st_atime;
+ long st_mtime;
+ long st_ctime;
+ };
+#endif
+
+/*
* The following defines redefine the Windows Socket errors as
* BSD errors so Tcl_PosixError can do the right thing.
*/