From: Jim Meyering Date: Sun, 23 Jul 2000 16:27:13 +0000 (+0000) Subject: Include if HAVE_SYS_PARAM_H is defined, X-Git-Tag: FILEUTILS-4_0x~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e67940b416f0264284ed78becca8e6ed091e729b;p=thirdparty%2Fcoreutils.git Include 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. --- diff --git a/src/su.c b/src/su.c index 5b78ed214a..6a5116ef23 100644 --- a/src/su.c +++ b/src/su.c @@ -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 -#endif /* not _POSIX_VERSION */ +#endif #ifndef HAVE_ENDGRENT # define endgrent() ((void) 0)