From fe106be46b4fb8e5a777b4de84e85530430ba40c Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 18 Sep 1994 00:28:34 +0000 Subject: . --- src/su.c | 5 ++++- src/who.c | 2 +- 2 files changed, 5 insertions(+), 2 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 diff --git a/src/who.c b/src/who.c index 5ded20f75..c2f6e20ab 100644 --- a/src/who.c +++ b/src/who.c @@ -56,7 +56,7 @@ #include #include -#ifndef _POSIX_SOURCE +#ifdef HAVE_SYS_PARAM_H #include #endif -- cgit v1.2.3-70-g09d2