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