projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16b1a53
)
(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 23fbaeab1dd8b992d8ecd4c32afd65f7fe546c5f..578a0177188cad6894c6223d8797755c3b8f84c9 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 */