summaryrefslogtreecommitdiffstats
path: root/login-utils/su.c
diff options
context:
space:
mode:
authorJim Meyering1994-09-18 02:28:34 +0200
committerJim Meyering1994-09-18 02:28:34 +0200
commit4214f67eb9ed834b754631aace8c666efee0d8e2 (patch)
tree6e6a7e21d7efc10349c7e1e26ff5db815cf1d1a2 /login-utils/su.c
parent. (diff)
downloadkernel-qcow2-util-linux-4214f67eb9ed834b754631aace8c666efee0d8e2.tar.gz
kernel-qcow2-util-linux-4214f67eb9ed834b754631aace8c666efee0d8e2.tar.xz
kernel-qcow2-util-linux-4214f67eb9ed834b754631aace8c666efee0d8e2.zip
.
Diffstat (limited to 'login-utils/su.c')
-rw-r--r--login-utils/su.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/login-utils/su.c b/login-utils/su.c
index 6bee0cb59..303a3c67d 100644
--- a/login-utils/su.c
+++ b/login-utils/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