diff options
-rw-r--r-- | lib/userspec.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/userspec.c b/lib/userspec.c index d95780a1a..c6a49fae2 100644 --- a/lib/userspec.c +++ b/lib/userspec.c @@ -63,9 +63,12 @@ struct group *getgrnam (); struct group *getgrgid (); #endif -#ifdef _POSIX_SOURCE -#define endpwent() -#define endgrent() +#ifndef HAVE_ENDGRENT +# define endgrent() ((void) 0) +#endif + +#ifndef HAVE_ENDPWENT +# define endpwent() ((void) 0) #endif /* Perform the equivalent of the statement `dest = strdup (src);', |