diff options
author | Jim Meyering <jim@meyering.net> | 1995-10-18 15:59:12 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-10-18 15:59:12 +0000 |
commit | fc2e23b1ad72847183b03d021a18998afdaf1424 (patch) | |
tree | 2935f72a2059320c6578e102db1b7795fbb86324 | |
parent | 1cde2ceb5c9404088c7be73dc1438b774a7709c4 (diff) | |
download | coreutils-fc2e23b1ad72847183b03d021a18998afdaf1424.tar.xz |
[HAVE_ENDGRENT]: Define away endgrent.
[HAVE_ENDPWENT]: Define away endpwent.
-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);', |