summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-24 14:56:10 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-24 14:56:10 (GMT)
commita199dc464de128d6b2c101d0d66f0f7e92b81c8b (patch)
treef90b6033f77820bd87ea88fdf29ae43ef4022bf1 /unix/tclUnixFile.c
parent928a5b19706d8df5fe3accfac00d0320a7363b55 (diff)
parent53cba5d9bab6fe6203b4f8c7c8af931aa60cad30 (diff)
downloadtcl-a199dc464de128d6b2c101d0d66f0f7e92b81c8b.zip
tcl-a199dc464de128d6b2c101d0d66f0f7e92b81c8b.tar.gz
tcl-a199dc464de128d6b2c101d0d66f0f7e92b81c8b.tar.bz2
merge core-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;