summaryrefslogtreecommitdiffstats
path: root/unix/tclUnixPort.h
diff options
context:
space:
mode:
authornijtmans <nijtmans>2010-04-23 15:45:15 (GMT)
committernijtmans <nijtmans>2010-04-23 15:45:15 (GMT)
commit31f9ebcae6f4c9e30de64b164c8e35f1f13db6e1 (patch)
tree35cd0834624b0ed3b87dc3c2d56614e7b701d708 /unix/tclUnixPort.h
parent4c3a083386d8c35e9a7d32b9f88b3ba9dc9fc9de (diff)
downloadtcl-31f9ebcae6f4c9e30de64b164c8e35f1f13db6e1.zip
tcl-31f9ebcae6f4c9e30de64b164c8e35f1f13db6e1.tar.gz
tcl-31f9ebcae6f4c9e30de64b164c8e35f1f13db6e1.tar.bz2
Fix [Bug #2991415] tclport.h #included before limits.h
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r--unix/tclUnixPort.h7
1 files changed, 6 insertions, 1 deletions
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 <inttypes.h>
#endif
+#ifdef NO_LIMITS_H
+# include "../compat/limits.h"
+#else
+# include <limits.h>
+#endif
#if HAVE_STDINT_H
# include <stdint.h>
#endif