define PATH_MAX if necessary
authorewt <devnull@localhost>
Fri, 17 Jan 1997 16:23:22 +0000 (16:23 +0000)
committerewt <devnull@localhost>
Fri, 17 Jan 1997 16:23:22 +0000 (16:23 +0000)
CVS patchset: 1318
CVS date: 1997/01/17 16:23:22

build/myftw.c

index 6e6710b..f5622ef 100644 (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.  */