aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorMichael Bushnell <mib@gnu.org>1994-09-14 14:11:15 +0000
committerMichael Bushnell <mib@gnu.org>1994-09-14 14:11:15 +0000
commiteb7392a8857e516904c4a1f12372716c75fd345d (patch)
treeb66d4e6b98373a4f86af38e57ac323fd61598998 /gcc
parenteb085d72becf24be9c72b90598cb0ffb2ba0702e (diff)
downloadgcc-eb7392a8857e516904c4a1f12372716c75fd345d.zip
gcc-eb7392a8857e516904c4a1f12372716c75fd345d.tar.gz
gcc-eb7392a8857e516904c4a1f12372716c75fd345d.tar.bz2
(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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/getpwd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/getpwd.c b/gcc/getpwd.c
index 922a9ed..5dc5f24 100644
--- a/gcc/getpwd.c
+++ b/gcc/getpwd.c
@@ -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. */