diff options
author | nijtmans <nijtmans> | 2010-05-25 10:37:18 (GMT) |
---|---|---|
committer | nijtmans <nijtmans> | 2010-05-25 10:37:18 (GMT) |
commit | 91f4c8d809190b7d786541a6119abec5cb11e846 (patch) | |
tree | cdf9afd1b63f56b3eefdd624b8462c8c66b6af50 /unix | |
parent | 21140acd90b510305ba98e94fadecbdcf73d4f86 (diff) | |
download | tcl-91f4c8d809190b7d786541a6119abec5cb11e846.zip tcl-91f4c8d809190b7d786541a6119abec5cb11e846.tar.gz tcl-91f4c8d809190b7d786541a6119abec5cb11e846.tar.bz2 |
[Bug 2991415]: tclport.h #included before limits.h
Diffstat (limited to 'unix')
-rw-r--r-- | unix/tclUnixPort.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index 2da95b5..87344e0 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.65 2008/03/11 22:26:27 das Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.65.2.1 2010/05/25 10:37:18 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 @@ -627,10 +632,9 @@ EXTERN int pthread_getattr_np _ANSI_ARGS_((pthread_t, pthread_attr_t *)); * known-to-be-MT-unsafe library calls. * Instead of returning pointers to the * static storage, those return pointers - * to the TSD data. + * to the TSD data. */ -#include <pwd.h> #include <grp.h> MODULE_SCOPE struct passwd* TclpGetPwNam(const char *name); |