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:
dabc92d
)
(xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2),
author
Jim Meyering
<jim@meyering.net>
Mon, 3 Sep 2001 07:43:44 +0000
(07:43 +0000)
committer
Jim Meyering
<jim@meyering.net>
Mon, 3 Sep 2001 07:43:44 +0000
(07:43 +0000)
to decide whether to use getcwd (NULL, 0).
lib/xgetcwd.c
patch
|
blob
|
history
diff --git
a/lib/xgetcwd.c
b/lib/xgetcwd.c
index
23fbaea
..
578a017
100644
(file)
--- a/
lib/xgetcwd.c
+++ b/
lib/xgetcwd.c
@@
-51,7
+51,7
@@
char *getwd ();
char *
xgetcwd ()
{
-#if
defined __GLIBC__ && __GLIBC__ >= 2
+#if
HAVE_GETCWD_NULL
return getcwd (NULL, 0);
#else
size_t buf_size = 128; /* must be a power of 2 */