diff options
author | Jim Meyering <jim@meyering.net> | 1995-10-18 16:07:44 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1995-10-18 16:07:44 +0000 |
commit | 871d176f15eae7387f6fe2adcd893997207dbbe0 (patch) | |
tree | c58b88c474650d5bce9762471d658f4c706574c5 /src | |
parent | fc2e23b1ad72847183b03d021a18998afdaf1424 (diff) | |
download | coreutils-871d176f15eae7387f6fe2adcd893997207dbbe0.tar.xz |
[endpwent]: Test !HAVE_ENDPWENT rather than _POSIX_SOURCE.
[endgrent]: Remove unused definition.
Diffstat (limited to 'src')
-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 (); |