diff options
| author | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-18 14:44:45 (GMT) | 
|---|---|---|
| committer | nijtmans@users.sourceforge.net <jan.nijtmans> | 2013-01-18 14:44:45 (GMT) | 
| commit | c081aa97d58617035b660a9eb68d1d07cb7c710d (patch) | |
| tree | 569e8ed67af59af41ff704739aed6d223e0cf5ab /unix/tclUnixFile.c | |
| parent | 5ee9b9c294da03a4070b2b0191756b480248e1b0 (diff) | |
| parent | 6cbbb326673f3f24b041f96a3729dd8ababb765a (diff) | |
| download | tcl-c081aa97d58617035b660a9eb68d1d07cb7c710d.zip tcl-c081aa97d58617035b660a9eb68d1d07cb7c710d.tar.gz tcl-c081aa97d58617035b660a9eb68d1d07cb7c710d.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;  | 
