]> gcc.gnu.org Git - gcc.git/commitdiff
(GUESSPATHLEN): If there is no definition of MAXPATHLEN, then set GUESSPATHLEN to...
authorMichael Bushnell <mib@gnu.org>
Wed, 14 Sep 1994 14:11:15 +0000 (14:11 +0000)
committerMichael Bushnell <mib@gnu.org>
Wed, 14 Sep 1994 14:11:15 +0000 (14:11 +0000)
(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

gcc/getpwd.c

index 922a9edb1123903451e367874f0e9904e242f2df..5dc5f2401e25a8ce3067134222f41fbcda46251f 100644 (file)
@@ -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.  */
This page took 0.060927 seconds and 5 git commands to generate.