define PATH_MAX if necessary

CVS patchset: 1318
CVS date: 1997/01/17 16:23:22
This commit is contained in:
ewt 1997-01-17 16:23:22 +00:00
parent 15e5bfc3ce
commit 265d11ee06
1 changed files with 12 additions and 0 deletions

View File

@ -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. */