diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-04-21 08:27:52 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2011-04-21 08:27:52 (GMT) |
commit | 7d0a560d355159a6a8013f1edc7aedea37e7cf73 (patch) | |
tree | 488cf88073be0a3326790028a949d6385f029143 /win/tclWinPort.h | |
parent | 7f792b880aa3a8d14f800a2f2bf5af2df9fe36da (diff) | |
parent | 81582f76e6fa7e328f9ae6c92cf756e569565818 (diff) | |
download | tcl-7d0a560d355159a6a8013f1edc7aedea37e7cf73.zip tcl-7d0a560d355159a6a8013f1edc7aedea37e7cf73.tar.gz tcl-7d0a560d355159a6a8013f1edc7aedea37e7cf73.tar.bz2 |
fix for [Bug 3288345]: Wrong Tcl_StatBuf used 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.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/win/tclWinPort.h b/win/tclWinPort.h index 55b95c1..c1317be 100644 --- a/win/tclWinPort.h +++ b/win/tclWinPort.h @@ -105,6 +105,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. */ |