summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixFile.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2013-01-31 05:17:33 (GMT)
committerdgp <dgp@users.sourceforge.net>2013-01-31 05:17:33 (GMT)
commit15624be5c60333dd6c9ca7a0b651fda1d92e7b7c (patch)
treed6af24523cb86d4a3b20a3e66c16644dadc319b2 /unix/tclUnixFile.c
parent6d8a36d84d2843681302604a082e2f787c3c3674 (diff)
parentf50bf4d17a2021e535f47e5253e24bd3dc1269b5 (diff)
downloadtcl-contrib_patrick_fradin_code_cleanup.zip
tcl-contrib_patrick_fradin_code_cleanup.tar.gz
tcl-contrib_patrick_fradin_code_cleanup.tar.bz2
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;