Mercurial > hg > octave-lyh > gnulib-hg
changeset 7414:368fbbd8e59d
Provide a fallback for PATH_MAX.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 06 Oct 2006 21:20:20 +0000 |
parents | f98558470761 |
children | 66b32599c835 |
files | lib/ChangeLog lib/clean-temp.c |
diffstat | 2 files changed, 14 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2006-10-06 Bruno Haible <bruno@clisp.org> + + * clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd. + Reported by Eric Blake. + 2006-09-29 Bruno Haible <bruno@clisp.org> and Paul Eggert <eggert@cs.ucla.edu>
--- a/lib/clean-temp.c +++ b/lib/clean-temp.c @@ -41,6 +41,15 @@ #define _(str) gettext (str) +/* GNU Hurd doesn't have PATH_MAX. */ +#ifndef PATH_MAX +# ifdef MAXPATHLEN +# define PATH_MAX MAXPATHLEN +# else +# define PATH_MAX 1024 +# endif +#endif + #ifndef uintptr_t # define uintptr_t unsigned long #endif