diff options
Diffstat (limited to 'Build/source/texk/kpathsea/c-pathmx.h')
-rw-r--r-- | Build/source/texk/kpathsea/c-pathmx.h | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/Build/source/texk/kpathsea/c-pathmx.h b/Build/source/texk/kpathsea/c-pathmx.h index fb122d0ae55..8b63023db01 100644 --- a/Build/source/texk/kpathsea/c-pathmx.h +++ b/Build/source/texk/kpathsea/c-pathmx.h @@ -1,8 +1,10 @@ /* c-pathmx.h: define PATH_MAX, the maximum length of a filename. - Since no such limit may exist, it's preferable to dynamically grow - filenames as needed. + Since no such limit may exist (pace GNU Hurd), these constants should + not actually be used; filenames should be dynamically grown as + needed. Most of Kpathsea does this now, but not all, and not all + programs using it. - Copyright 1992, 1993, 2008 Karl Berry. + Copyright 1992, 1993, 2008, 2010 Karl Berry. Copyright 2005 Olaf Weber. This library is free software; you can redistribute it and/or @@ -24,7 +26,7 @@ #include <kpathsea/c-limits.h> /* Cheat and define this as a manifest constant no matter what, instead - of using pathconf. I forget why we want to do this. */ + of using pathconf. Maybe it is too big otherwise on Hurd? */ #ifndef _POSIX_PATH_MAX #define _POSIX_PATH_MAX 255 @@ -33,10 +35,11 @@ #ifndef PATH_MAX #ifdef MAXPATHLEN #define PATH_MAX MAXPATHLEN +#elif defined (MAX_PATH) +#define PATH_MAX MAX_PATH #else #define PATH_MAX _POSIX_PATH_MAX #endif #endif /* not PATH_MAX */ - #endif /* not KPATHSEA_C_PATH_MAX_H */ |