Mercurial > hg > octave-lyh > gnulib-hg
changeset 499:62aa0b766a11
[HAVE_ENDGRENT]: Define away endgrent.
[HAVE_ENDPWENT]: Define away endpwent.
author | Jim Meyering <jim@meyering.net> |
---|---|
date | Wed, 18 Oct 1995 15:59:12 +0000 |
parents | 89a4657bb64a |
children | fc733d749dd0 |
files | lib/userspec.c |
diffstat | 1 files changed, 6 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/lib/userspec.c +++ b/lib/userspec.c @@ -63,9 +63,12 @@ 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);',