diff options
author | Michael Bushnell <mib@gnu.org> | 1994-09-14 14:11:15 +0000 |
---|---|---|
committer | Michael Bushnell <mib@gnu.org> | 1994-09-14 14:11:15 +0000 |
commit | eb7392a8857e516904c4a1f12372716c75fd345d (patch) | |
tree | b66d4e6b98373a4f86af38e57ac323fd61598998 /gcc | |
parent | eb085d72becf24be9c72b90598cb0ffb2ba0702e (diff) | |
download | gcc-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.c | 4 |
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. */ |