diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2013-01-19 22:25:58 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2013-01-19 22:25:58 (GMT) |
commit | 640f83b5b1bdb05ba94fac920719203c57a5556f (patch) | |
tree | 0f8065e6deec1545042cce7a162df3b03a5aab00 /unix/tclUnixFile.c | |
parent | a5cfbafa9098e5ae4018b3142702fd8138417776 (diff) | |
parent | 8c190c2de231c115b66ef2dc05a8d9b8da20b930 (diff) | |
download | tcl-640f83b5b1bdb05ba94fac920719203c57a5556f.zip tcl-640f83b5b1bdb05ba94fac920719203c57a5556f.tar.gz tcl-640f83b5b1bdb05ba94fac920719203c57a5556f.tar.bz2 |
merge main 8.5 branch
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r-- | unix/tclUnixFile.c | 6 |
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; |