projects
/
platform
/
upstream
/
rpm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
15e5bfc
)
define PATH_MAX if necessary
author
ewt
<devnull@localhost>
Fri, 17 Jan 1997 16:23:22 +0000
(16:23 +0000)
committer
ewt
<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
patch
|
blob
|
history
diff --git
a/build/myftw.c
b/build/myftw.c
index
6e6710b
..
f5622ef
100644
(file)
--- 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. */