summaryrefslogtreecommitdiff
path: root/src/su.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1994-09-18 00:28:34 +0000
committerJim Meyering <jim@meyering.net>1994-09-18 00:28:34 +0000
commitfe106be46b4fb8e5a777b4de84e85530430ba40c (patch)
tree70fd995a98c1d677748ecfc5b400ad06b04e6cae /src/su.c
parent73b9e4b762d89e5774735f2f8fba5cdc4155b7bb (diff)
downloadcoreutils-fe106be46b4fb8e5a777b4de84e85530430ba40c.tar.xz
.
Diffstat (limited to 'src/su.c')
-rw-r--r--src/su.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/su.c b/src/su.c
index 6bee0cb59..303a3c67d 100644
--- a/src/su.c
+++ b/src/su.c
@@ -118,8 +118,11 @@ uid_t getuid ();
#endif
#endif /* not _POSIX_VERSION */
-#ifdef _POSIX_SOURCE
+#ifndef HAVE_ENDGRENT
#define endgrent()
+#endif
+
+#ifndef HAVE_ENDPWENT
#define endpwent()
#endif