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: v2.22-rc1~347^2~10^2~27 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=26d6d3f836d561c414b9a0414e23be6667f2dbf5;p=thirdparty%2Futil-linux.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/login-utils/su.c b/login-utils/su.c index 5b78ed214a..6a5116ef23 100644 --- a/login-utils/su.c +++ b/login-utils/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)