From 26d6d3f836d561c414b9a0414e23be6667f2dbf5 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 23 Jul 2000 16:27:13 +0000 Subject: [PATCH] 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. --- login-utils/su.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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) -- 2.47.3