diff options
author | hobbs <hobbs@noemail.net> | 2003-02-20 00:34:07 (GMT) |
---|---|---|
committer | hobbs <hobbs@noemail.net> | 2003-02-20 00:34:07 (GMT) |
commit | 84df0161eb3853d851e52b32ee3ca124e32b5170 (patch) | |
tree | 7fe31e436f3c8b269e1b63b04218e836fda70741 /unix/tclUnixPort.h | |
parent | 74ce9ddbb1aa733081caadee63347e5d66e1b9d0 (diff) | |
download | tcl-84df0161eb3853d851e52b32ee3ca124e32b5170.zip tcl-84df0161eb3853d851e52b32ee3ca124e32b5170.tar.gz tcl-84df0161eb3853d851e52b32ee3ca124e32b5170.tar.bz2 |
* unix/tclUnixThrd.c (TclpReaddir):
* unix/tclUnixPort.h: update to Bug 689100 patch to ensure that
there is a defined value of MAXNAMLEN (aka NAME_MAX in POSIX) and
that we have some buffer allocated.
FossilOrigin-Name: 068379cc789d691026884e563ec38e168e34e2e7
Diffstat (limited to 'unix/tclUnixPort.h')
-rw-r--r-- | unix/tclUnixPort.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/unix/tclUnixPort.h b/unix/tclUnixPort.h index ef39fc5..511e09b 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.26 2002/06/28 09:56:54 dkf Exp $ + * RCS: @(#) $Id: tclUnixPort.h,v 1.27 2003/02/20 00:34:09 hobbs Exp $ */ #ifndef _TCLUNIXPORT @@ -386,7 +386,7 @@ EXTERN int gettimeofday _ANSI_ARGS_((struct timeval *tp, #endif /* !S_ISSOCK */ /* - * Make sure that MAXPATHLEN is defined. + * Make sure that MAXPATHLEN and MAXNAMLEN are defined. */ #ifndef MAXPATHLEN @@ -397,6 +397,14 @@ EXTERN int gettimeofday _ANSI_ARGS_((struct timeval *tp, # endif #endif +#ifndef MAXNAMLEN +# ifdef NAME_MAX +# define MAXNAMLEN NAME_MAX +# else +# define MAXNAMLEN 255 +# endif +#endif + /* * Make sure that L_tmpnam is defined. */ |