projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a319b6a
)
[!HAVE_DECL_GETCWD]: Declare getcwd.
author
Jim Meyering
<jim@meyering.net>
Thu, 6 Mar 2003 22:04:45 +0000
(22:04 +0000)
committer
Jim Meyering
<jim@meyering.net>
Thu, 6 Mar 2003 22:04:45 +0000
(22:04 +0000)
lib/getcwd.c
patch
|
blob
|
history
diff --git
a/lib/getcwd.c
b/lib/getcwd.c
index
b418a76
..
26fea6f
100644
(file)
--- 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. */