From: Jim Meyering Date: Mon, 3 Sep 2001 07:43:44 +0000 (+0000) Subject: (xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2), X-Git-Tag: TEXTUTILS-2_0_15~171 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae60bce16e081e1ecbb527f7380af038f2ce075b;p=thirdparty%2Fcoreutils.git (xgetcwd): Use HAVE_GETCWD_NULL, not (defined __GLIBC__ && __GLIBC__ >= 2), to decide whether to use getcwd (NULL, 0). --- diff --git a/lib/xgetcwd.c b/lib/xgetcwd.c index 23fbaeab1d..578a017718 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 */