diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-31 20:33:13 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 1999-08-31 20:33:13 +0000 |
commit | be342bf0a6c4d5aae61aa50960e164e7a49e206a (patch) | |
tree | 53dc9f4ec215c66e8a42eb62a0f5661cda975858 /libiberty/getpwd.c | |
parent | 5a6e1db3d91e27b9088f7fd6732bf4f6b8b1b034 (diff) | |
download | gcc-be342bf0a6c4d5aae61aa50960e164e7a49e206a.tar.gz |
* getpwd.c: Check HAVE_GETCWD before defining it away.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@29013 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/getpwd.c')
-rw-r--r-- | libiberty/getpwd.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/libiberty/getpwd.c b/libiberty/getpwd.c index 2fa341681e3..de6e0397648 100644 --- a/libiberty/getpwd.c +++ b/libiberty/getpwd.c @@ -34,17 +34,15 @@ extern char *getwd (); BSD systems) now provides getcwd as called for by POSIX. Allow for the few exceptions to the general rule here. */ -#if !(defined (POSIX) || defined (USG) || defined (VMS)) || defined (HAVE_GETWD) +#if !defined(HAVE_GETCWD) && defined(HAVE_GETWD) #define getcwd(buf,len) getwd(buf) +#endif + #ifdef MAXPATHLEN #define GUESSPATHLEN (MAXPATHLEN + 1) #else #define GUESSPATHLEN 100 #endif -#else /* (defined (USG) || defined (VMS)) */ -/* We actually use this as a starting point, not a limit. */ -#define GUESSPATHLEN 100 -#endif /* (defined (USG) || defined (VMS)) */ #if !(defined (VMS) || (defined(_WIN32) && !defined(__CYGWIN__))) |