summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <jan.nijtmans@noemail.net>2012-02-16 23:09:59 (GMT)
committerjan.nijtmans <jan.nijtmans@noemail.net>2012-02-16 23:09:59 (GMT)
commitdf781f67fb03328c035d17f94574e07c3f3467ac (patch)
treeb48118a081b346ed56112578a34c8f800407cd94
parentfda64e1abac48cdce1db8fc71b8df7d33571cc0d (diff)
downloadtcl-df781f67fb03328c035d17f94574e07c3f3467ac.zip
tcl-df781f67fb03328c035d17f94574e07c3f3467ac.tar.gz
tcl-df781f67fb03328c035d17f94574e07c3f3467ac.tar.bz2
[Bug 2233954] AIX: compile error
FossilOrigin-Name: 66427b5db996a0f86cc55d8eabe3c405073fd91e
-rw-r--r--ChangeLog5
-rw-r--r--generic/tclIOUtil.c3
-rw-r--r--unix/tclUnixPort.h4
3 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 94dc4ff..48b6f81 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-17 Jan Nijtmans <nijtmans@users.sf.net>
+
+ * generic/tclIOUtil.c: [Bug 2233954] AIX: compile error
+ * unix/tclUnixPort.h:
+
2012-02-15 Donal K. Fellows <dkf@users.sf.net>
* generic/tclCompCmds.c (TclCompileDictForCmd): [Bug 3487626]: Fix
diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c
index fb8b74f..b8c76c0 100644
--- a/generic/tclIOUtil.c
+++ b/generic/tclIOUtil.c
@@ -18,6 +18,9 @@
* this file, and for a DISCLAIMER OF ALL WARRANTIES.
*/
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#include "tclInt.h"
#ifdef __WIN32__
# include "tclWinInt.h"
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h
index 421d73c..e4008c9 100644
--- a/unix/tclUnixPort.h
+++ b/unix/tclUnixPort.h
@@ -85,7 +85,9 @@ typedef off_t Tcl_SeekOffset;
#ifdef HAVE_SYS_SELECT_H
# include <sys/select.h>
#endif
-#include <sys/stat.h>
+#ifdef HAVE_SYS_STAT_H
+# include <sys/stat.h>
+#endif
#if TIME_WITH_SYS_TIME
# include <sys/time.h>
# include <time.h>