Commit 82f25f57 by Richard Earnshaw

Always use getwd if HAVE_GETWD is defined.

From-SVN: r8268
parent 3a6f7177
...@@ -14,7 +14,7 @@ extern int errno; ...@@ -14,7 +14,7 @@ extern int errno;
BSD systems) now provides getcwd as called for by POSIX. Allow for BSD systems) now provides getcwd as called for by POSIX. Allow for
the few exceptions to the general rule here. */ 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> #include <sys/param.h>
extern char *getwd (); extern char *getwd ();
#define getcwd(buf,len) getwd(buf) #define getcwd(buf,len) getwd(buf)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment