summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-18 14:44:45 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-18 14:44:45 (GMT)
commit63fe76b6b89557c393f4e3eefa37ecf11a4d64bc (patch)
tree569e8ed67af59af41ff704739aed6d223e0cf5ab /unix/tclUnixFile.c
parent0c7be9daeb83147f81ecd891b80398293c36e92a (diff)
parentf50af0e8c33d29a694f03efedfc7bf1ae18b3e16 (diff)
downloadtcl-63fe76b6b89557c393f4e3eefa37ecf11a4d64bc.zip
tcl-63fe76b6b89557c393f4e3eefa37ecf11a4d64bc.tar.gz
tcl-63fe76b6b89557c393f4e3eefa37ecf11a4d64bc.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.c6
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;