diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-02-16 23:11:40 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2012-02-16 23:11:40 (GMT) |
commit | efe1cdd5b7f7aed22c2c4f10c0a2d77604ab5b7e (patch) | |
tree | f1dba03afe320f001e2db0f65a139a0fd974af32 | |
parent | b4ca6b5a992c406bbf4f3ef73ecb5ae2a8d878a6 (diff) | |
parent | 52c4fef3cfd97fa473a7cc98397cde9c6dde64a9 (diff) | |
download | tcl-efe1cdd5b7f7aed22c2c4f10c0a2d77604ab5b7e.zip tcl-efe1cdd5b7f7aed22c2c4f10c0a2d77604ab5b7e.tar.gz tcl-efe1cdd5b7f7aed22c2c4f10c0a2d77604ab5b7e.tar.bz2 |
[Bug 2233954] AIX: compile error
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | generic/tclIOUtil.c | 3 | ||||
-rw-r--r-- | unix/tclUnixPort.h | 4 |
3 files changed, 11 insertions, 1 deletions
@@ -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-16 Donal K. Fellows <dkf@users.sf.net> * generic/tclExecute.c (INST_LIST_RANGE_IMM): Enhance implementation diff --git a/generic/tclIOUtil.c b/generic/tclIOUtil.c index 17e50fa..0837070 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 fd396f7..2666fb5 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -96,7 +96,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> |