From 52c4fef3cfd97fa473a7cc98397cde9c6dde64a9 Mon Sep 17 00:00:00 2001 From: "jan.nijtmans" Date: Thu, 16 Feb 2012 23:09:59 +0000 Subject: [Bug 2233954] AIX: compile error --- ChangeLog | 5 +++++ generic/tclIOUtil.c | 3 +++ unix/tclUnixPort.h | 4 +++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 94dc4ff..48b6f81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-02-17 Jan Nijtmans + + * generic/tclIOUtil.c: [Bug 2233954] AIX: compile error + * unix/tclUnixPort.h: + 2012-02-15 Donal K. Fellows * 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 +#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 #endif -#include +#ifdef HAVE_SYS_STAT_H +# include +#endif #if TIME_WITH_SYS_TIME # include # include -- cgit v0.12