summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2001-09-03 07:43:44 +0000
committerJim Meyering <jim@meyering.net>2001-09-03 07:43:44 +0000
commitae60bce16e081e1ecbb527f7380af038f2ce075b (patch)
treee29043d1be1ff2f68cfc16dfb218c83999ef17e1 /lib
parentdabc92dc12221099ce914ba625ed6e1c09bd1589 (diff)
downloadcoreutils-ae60bce16e081e1ecbb527f7380af038f2ce075b.tar.xz
(xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2),
to decide whether to use getcwd (NULL, 0).
Diffstat (limited to 'lib')
-rw-r--r--lib/xgetcwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c
index 23fbaeab1..578a01771 100644
--- 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 */