From 31f9ebcae6f4c9e30de64b164c8e35f1f13db6e1 Mon Sep 17 00:00:00 2001 From: nijtmans Date: Fri, 23 Apr 2010 15:45:15 +0000 Subject: Fix [Bug #2991415] tclport.h #included before limits.h --- ChangeLog | 4 ++++ unix/tclUnixPort.h | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5d95fe7..5a2b140 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2010-04-23 Jan Nijtmans + + * unix/tclUnixPort.h Fix [Bug #2991415] tclport.h #included before limits.h + 2010-04-22 Jan Nijtmans * generic/tclPlatDecls.h Move TCHAR fallback typedef from tcl.h to diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 237224e..6ed41a1 100644 --- a/unix/tclUnixPort.h +++ b/unix/tclUnixPort.h @@ -19,7 +19,7 @@ * See the file "license.terms" for information on usage and redistribution * of this file, and for a DISCLAIMER OF ALL WARRANTIES. * - * RCS: @(#) $Id: tclUnixPort.h,v 1.71 2010/02/22 23:31:41 nijtmans Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.72 2010/04/23 15:45:15 nijtmans Exp $ */ #ifndef _TCLUNIXPORT @@ -104,6 +104,11 @@ typedef off_t Tcl_SeekOffset; #if HAVE_INTTYPES_H # include #endif +#ifdef NO_LIMITS_H +# include "../compat/limits.h" +#else +# include +#endif #if HAVE_STDINT_H # include #endif -- cgit v0.12