summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1995-10-18 16:08:13 +0000
committerJim Meyering <jim@meyering.net>1995-10-18 16:08:13 +0000
commitdaa976fff6ed92ed31ff116dc1f2ba1744aba4b6 (patch)
tree01256aa25191948f6ece28483e4e812b502377c3 /src
parent871d176f15eae7387f6fe2adcd893997207dbbe0 (diff)
downloadcoreutils-daa976fff6ed92ed31ff116dc1f2ba1744aba4b6.tar.xz
[endgrent]: Test !HAVE_ENDGRENT rather than _POSIX_SOURCE.
Diffstat (limited to 'src')
-rw-r--r--src/chgrp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/chgrp.c b/src/chgrp.c
index 0ee2b7297..24ac34be4 100644
--- a/src/chgrp.c
+++ b/src/chgrp.c
@@ -44,8 +44,8 @@
struct group *getgrnam ();
#endif
-#ifdef _POSIX_VERSION
-#define endgrent()
+#ifndef HAVE_ENDGRENT
+# define endgrent() ((void) 0)
#endif
char *group_member ();