]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Sun, 18 Sep 1994 00:28:34 +0000 (00:28 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 18 Sep 1994 00:28:34 +0000 (00:28 +0000)
src/su.c
src/who.c

index 6bee0cb590f6ffd691a80c6c3be992272a420c10..303a3c67d25712cbe9fccce01e61c21d75209a18 100644 (file)
--- 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
 
index 5ded20f753cc080e8d02a6df09ad66f33edb0861..c2f6e20aba50ad707d2c00fd6674734bc23e13dc 100644 (file)
--- a/src/who.c
+++ b/src/who.c
@@ -56,7 +56,7 @@
 
 #include <time.h>
 #include <getopt.h>
-#ifndef _POSIX_SOURCE
+#ifdef HAVE_SYS_PARAM_H
 #include <sys/param.h>
 #endif