summaryrefslogtreecommitdiffstats
path: root/win
diff options
context:
space:
mode:
authorjan <jan>2011-04-21 21:15:23 (GMT)
committerjan <jan>2011-04-21 21:15:23 (GMT)
commit9fa159a7dbe661b197f5091ecb9bbe75db1f8416 (patch)
treeb15b383b0f866020c5c0c9cf1fa3ecb992ffc12e /win
parente2a3542b1be6a3730eb92641069edecc434ae297 (diff)
parent2655a2a137310115e9acf31c856e6994f682510f (diff)
downloadtcl-9fa159a7dbe661b197f5091ecb9bbe75db1f8416.zip
tcl-9fa159a7dbe661b197f5091ecb9bbe75db1f8416.tar.gz
tcl-9fa159a7dbe661b197f5091ecb9bbe75db1f8416.tar.bz2
[Bug 3288345]: Bring cygwin Tcl_StatBuf a little bit closer to reality
Diffstat (limited to 'win')
-rw-r--r--win/tclWinFile.c3
-rw-r--r--win/tclWinPort.h12
2 files changed, 12 insertions, 3 deletions
diff --git a/win/tclWinFile.c b/win/tclWinFile.c
index a772015..df1c25b 100644
--- a/win/tclWinFile.c
+++ b/win/tclWinFile.c
@@ -12,6 +12,9 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
+#ifndef _WIN64
+# define _USE_32BIT_TIME_T
+#endif
#include "tclWinInt.h"
#include "tclFileSystem.h"
#include <winioctl.h>
diff --git a/win/tclWinPort.h b/win/tclWinPort.h
index 9c9831c..a3e5830 100644
--- a/win/tclWinPort.h
+++ b/win/tclWinPort.h
@@ -117,17 +117,23 @@
*/
#if !defined(__BORLANDC__) && !defined(_MSC_VER) && !defined(_WIN64) && !defined(HAVE_STRUCT_STAT32I64)
struct _stat32i64 {
- _dev_t st_dev;
- _ino_t st_ino;
+ 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;
+ dev_t st_rdev;
__int64 st_size;
+#ifdef __CYGWIN__
+ struct {long tv_sec;} st_atim;
+ struct {long tv_sec;} st_mtim;
+ struct {long tv_sec;} st_ctim;
+#else
long st_atime;
long st_mtime;
long st_ctime;
+#endif
};
#endif