Always use getwd if HAVE_GETWD is defined.
authorRichard Earnshaw <erich@gnu.org>
Fri, 14 Oct 1994 14:29:15 +0000 (14:29 +0000)
committerRichard Earnshaw <erich@gnu.org>
Fri, 14 Oct 1994 14:29:15 +0000 (14:29 +0000)
From-SVN: r8268

gcc/getpwd.c

index f2317a4da3adfcec7f94853a61749b3ce4d802b3..d939f3981eba2a18f5b15562aa924d04b617332b 100644 (file)
@@ -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)