From: Jim Meyering Date: Thu, 6 Mar 2003 22:04:45 +0000 (+0000) Subject: [!HAVE_DECL_GETCWD]: Declare getcwd. X-Git-Tag: v4.5.10~113 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a63a08387992468dffa3bd9d27ce39f5afa95cf3;p=thirdparty%2Fcoreutils.git [!HAVE_DECL_GETCWD]: Declare getcwd. --- diff --git a/lib/getcwd.c b/lib/getcwd.c index b418a76f7e..26fea6ff6d 100644 --- a/lib/getcwd.c +++ b/lib/getcwd.c @@ -36,6 +36,10 @@ extern int errno; prototype for rpl_getcwd. */ #undef getcwd +#if !HAVE_DECL_GETCWD +extern char *getcwd (char *, size_t); +#endif + /* Guess high, because that makes the test below more conservative. But this is a kludge, because we should really use pathconf (".", _PC_NAME_MAX). But it's probably not worth the cost. */