summaryrefslogtreecommitdiff
path: root/lib/getcwd.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-03-06 22:04:45 +0000
committerJim Meyering <jim@meyering.net>2003-03-06 22:04:45 +0000
commita63a08387992468dffa3bd9d27ce39f5afa95cf3 (patch)
treea94db0be05c1c9b568782a1a05a2a3d8044c6cfd /lib/getcwd.c
parenta319b6a626146c8eb35352cab5dc71a3f34058db (diff)
downloadcoreutils-a63a08387992468dffa3bd9d27ce39f5afa95cf3.tar.xz
[!HAVE_DECL_GETCWD]: Declare getcwd.
Diffstat (limited to 'lib/getcwd.c')
-rw-r--r--lib/getcwd.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/getcwd.c b/lib/getcwd.c
index b418a76f7..26fea6ff6 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. */