diff options
-rw-r--r-- | src/su.c | 5 | ||||
-rw-r--r-- | src/who.c | 2 |
2 files changed, 5 insertions, 2 deletions
@@ -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 @@ -56,7 +56,7 @@ #include <time.h> #include <getopt.h> -#ifndef _POSIX_SOURCE +#ifdef HAVE_SYS_PARAM_H #include <sys/param.h> #endif |