diff options
author | Jim Meyering <jim@meyering.net> | 2000-07-23 16:27:13 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2000-07-23 16:27:13 +0000 |
commit | e67940b416f0264284ed78becca8e6ed091e729b (patch) | |
tree | 1adf51af2d959c09dce553c74809aaf9b5c7c0f8 /src | |
parent | 57a16fe8c17944e0566455f512788374a5bd7872 (diff) | |
download | coreutils-e67940b416f0264284ed78becca8e6ed091e729b.tar.xz |
Include <sys/param.h> if HAVE_SYS_PARAM_H is defined,
rather than if _POSIX_VERSION is defined. Remove declarations of
getpwuid, getgrgid, and getuid, now that they're in sys2.h.
Diffstat (limited to 'src')
-rw-r--r-- | src/su.c | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -94,12 +94,9 @@ # undef SYSLOG_NON_ROOT #endif -#ifndef _POSIX_VERSION -struct passwd *getpwuid (); -struct group *getgrgid (); -uid_t getuid (); +#if HAVE_SYS_PARAM_H # include <sys/param.h> -#endif /* not _POSIX_VERSION */ +#endif #ifndef HAVE_ENDGRENT # define endgrent() ((void) 0) |