[!HAVE_DECL_GETCWD]: Declare getcwd.
authorJim Meyering <jim@meyering.net>
Thu, 6 Mar 2003 22:04:45 +0000 (22:04 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 6 Mar 2003 22:04:45 +0000 (22:04 +0000)
lib/getcwd.c

index b418a76..26fea6f 100644 (file)
@@ -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.  */