summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-21 13:56:51 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2013-01-21 13:56:51 (GMT)
commitef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0 (patch)
tree3ea848a08f7c1e1c5ab1bf18683297efdf703702 /unix/tclUnixFile.c
parent2930daf68ce7f2d1c8d17c5e4c7084d77d21aa1c (diff)
parent90852966272ccb62a125e43ba6cd5b2f3184ebe6 (diff)
downloadtcl-ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0.zip
tcl-ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0.tar.gz
tcl-ef824b7395c5d5dca17ebd8cfb0d8a89a7f250c0.tar.bz2
merge trunk
Diffstat (limited to 'unix/tclUnixFile.c')
-rw-r--r--unix/tclUnixFile.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/unix/tclUnixFile.c b/unix/tclUnixFile.c
index 38504d9..5816b01 100644
--- a/unix/tclUnixFile.c
+++ b/unix/tclUnixFile.c
@@ -10,6 +10,7 @@
* of this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
+#include <sys/stat.h>
#include "tclInt.h"
#include "tclFileSystem.h"
@@ -1181,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;
@@ -1203,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;