summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordonal.k.fellows@manchester.ac.uk <dkf>2013-01-19 22:25:58 (GMT)
committerdonal.k.fellows@manchester.ac.uk <dkf>2013-01-19 22:25:58 (GMT)
commitde3d3312c888c38c8fc5c83acec30f053faf233d (patch)
tree0f8065e6deec1545042cce7a162df3b03a5aab00 /unix/tclUnixFile.c
parent0b300cf50c3bbdab20d0979faee853404c0b551d (diff)
parent967130a70883d39bdd3e0264fafea73cdf7fbd9e (diff)
downloadtcl-de3d3312c888c38c8fc5c83acec30f053faf233d.zip
tcl-de3d3312c888c38c8fc5c83acec30f053faf233d.tar.gz
tcl-de3d3312c888c38c8fc5c83acec30f053faf233d.tar.bz2
merge main 8.5 branch
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 40434a0..5abac9d 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -1183,8 +1183,9 @@ TclpUtime(
return utime(Tcl_FSGetNativePath(pathPtr), tval);
}
#ifdef __CYGWIN__
-int TclOSstat(const char *name, Tcl_StatBuf *statBuf) {
+int TclOSstat(const char *name, void *cygstat) {
struct stat buf;
+ Tcl_StatBuf *statBuf = cygstat;
int result = stat(name, &buf);
statBuf->st_mode = buf.st_mode;
statBuf->st_ino = buf.st_ino;
@@ -1199,8 +1200,9 @@ int TclOSstat(const char *name, Tcl_StatBuf *statBuf) {
statBuf->st_ctime = buf.st_ctime;
return result;
}
-int TclOSlstat(const char *name, Tcl_StatBuf *statBuf) {
+int TclOSlstat(const char *name, void *cygstat) {
struct stat buf;
+ Tcl_StatBuf *statBuf = cygstat;
int result = lstat(name, &buf);
statBuf->st_mode = buf.st_mode;
statBuf->st_ino = buf.st_ino;