diff options
Diffstat (limited to 'src/chown.c')
-rw-r--r-- | src/chown.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/chown.c b/src/chown.c index 4cad5bd48..0d2ddd9aa 100644 --- a/src/chown.c +++ b/src/chown.c @@ -45,9 +45,8 @@ struct group *getgrnam (); struct group *getgrgid (); #endif -#ifdef _POSIX_SOURCE -#define endgrent() -#define endpwent() +#ifndef HAVE_ENDPWENT +# define endpwent() ((void) 0) #endif char *savedir (); |