summaryrefslogtreecommitdiff
path: root/gcc/getpwd.c
diff options
context:
space:
mode:
authorerich <erich@138bc75d-0d04-0410-961f-82ee72b054a4>1994-10-14 14:29:15 +0000
committererich <erich@138bc75d-0d04-0410-961f-82ee72b054a4>1994-10-14 14:29:15 +0000
commitde2064743eb97ca2df6fbd1f5352ade68bed2233 (patch)
tree9a98c38144f88c66840af55be6b1482943072387 /gcc/getpwd.c
parent9a6390b6a9916df155eb4d283d8e5ea200bccd7e (diff)
downloadgcc-de2064743eb97ca2df6fbd1f5352ade68bed2233.tar.gz
Always use getwd if HAVE_GETWD is defined.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@8268 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/getpwd.c')
-rw-r--r--gcc/getpwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/getpwd.c b/gcc/getpwd.c
index f2317a4da3a..d939f3981eb 100644
--- a/gcc/getpwd.c
+++ b/gcc/getpwd.c
@@ -14,7 +14,7 @@ extern int errno;
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))
+#if !(defined (POSIX) || defined (USG) || defined (VMS)) || defined (HAVE_GETWD)
#include <sys/param.h>
extern char *getwd ();
#define getcwd(buf,len) getwd(buf)