diff options
author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-18 14:30:25 (GMT) |
---|---|---|
committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-18 14:30:25 (GMT) |
commit | 6cbbb326673f3f24b041f96a3729dd8ababb765a (patch) | |
tree | dbe65461dbde0a5654155a36fe0528241cc56601 /unix/tclUnixFile.c | |
parent | 0d1e47225b4c0b3780ea74d629b513b8166fe211 (diff) | |
download | tcl-6cbbb326673f3f24b041f96a3729dd8ababb765a.zip tcl-6cbbb326673f3f24b041f96a3729dd8ababb765a.tar.gz tcl-6cbbb326673f3f24b041f96a3729dd8ababb765a.tar.bz2 |
... and fix cygwin build
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; |