Commit eb7392a8 by Michael Bushnell

(GUESSPATHLEN): If there is no definition of MAXPATHLEN, then set GUESSPATHLEN to be 100.

(GUESSPATHLEN): If there is no definition of MAXPATHLEN, then set
GUESSPATHLEN to be 100.  (It's used as a starting point, not a limit,
so this is harmless.)

From-SVN: r8080
parent eb085d72
......@@ -18,7 +18,11 @@ extern int errno;
#include <sys/param.h>
extern char *getwd ();
#define getcwd(buf,len) getwd(buf)
#ifdef MAXPATHLEN
#define GUESSPATHLEN (MAXPATHLEN + 1)
#else
#define GUESSPATHLEN 100
#endif
#else /* (defined (USG) || defined (VMS)) */
extern char *getcwd ();
/* We actually use this as a starting point, not a limit. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment