From 265d11ee06dfa77f450d43d476f93b3493a98cbc Mon Sep 17 00:00:00 2001 From: ewt Date: Fri, 17 Jan 1997 16:23:22 +0000 Subject: [PATCH] define PATH_MAX if necessary CVS patchset: 1318 CVS date: 1997/01/17 16:23:22 --- build/myftw.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/build/myftw.c b/build/myftw.c index 6e6710b..f5622ef 100644 --- a/build/myftw.c +++ b/build/myftw.c @@ -31,6 +31,18 @@ Cambridge, MA 02139, USA. */ #define NAMLEN(a) strlen((a)->d_name) #endif +#ifndef PATH_MAX +#ifdef _POSIX_VERSION +#define PATH_MAX _POSIX_PATH_MAX +#else +#ifdef MAXPATHLEN +#define PATH_MAX MAXPATHLEN +#else +#define PATH_MAX 1024 +#endif +#endif +#endif + #include "myftw.h" /* Traverse one level of a directory tree. */ -- 2.7.4