diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-18 14:44:45 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2013-01-18 14:44:45 (GMT) |
commit | 581c5b94ab4c310a88bb6cc3259e65e96590cfdf (patch) | |
tree | 569e8ed67af59af41ff704739aed6d223e0cf5ab /unix/tclUnixFile.c | |
parent | a6461e6b0d7514a5a99aa9d0935d32a0c6ac75c2 (diff) | |
parent | 6b531a4b27fc7ceaccac59a4af913056f26c25cf (diff) | |
download | tcl-581c5b94ab4c310a88bb6cc3259e65e96590cfdf.zip tcl-581c5b94ab4c310a88bb6cc3259e65e96590cfdf.tar.gz tcl-581c5b94ab4c310a88bb6cc3259e65e96590cfdf.tar.bz2 |
[Bug 3598300]: unix: tcl.h does not include sys/stat.h.
(with an exception for OSX, for now)
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 f1fedc3..5816b01 100644 --- a/unix/tclUnixFile.c +++ b/unix/tclUnixFile.c @@ -1182,9 +1182,10 @@ TclpUtime( int TclOSstat( const char *name, - Tcl_StatBuf *statBuf) + void *cygstat) { struct stat buf; + Tcl_StatBuf *statBuf = cygstat; int result = stat(name, &buf); statBuf->st_mode = buf.st_mode; @@ -1204,9 +1205,10 @@ TclOSstat( int TclOSlstat( const char *name, - Tcl_StatBuf *statBuf) + void *cygstat) { struct stat buf; + Tcl_StatBuf *statBuf = cygstat; int result = lstat(name, &buf); statBuf->st_mode = buf.st_mode; |