From: Jim Meyering Date: Tue, 11 Oct 1994 01:56:53 +0000 (+0000) Subject: . X-Git-Tag: v2.22-rc1~347^2~10^2~73 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=db90b9da09803f8e56b6e739a7fe6f9bd454db89;p=thirdparty%2Futil-linux.git . --- diff --git a/login-utils/su.c b/login-utils/su.c index 4a1640767a..a447a1a506 100644 --- a/login-utils/su.c +++ b/login-utils/su.c @@ -77,7 +77,7 @@ #include #include "system.h" -#ifdef HAVE_SYSLOG_H +#if defined(HAVE_SYSLOG_H) && defined(HAVE_SYSLOG) #include static void log_su (); #else /* !HAVE_SYSLOG_H */ @@ -397,7 +397,7 @@ static void change_identity (pw) struct passwd *pw; { -#ifdef NGROUPS_MAX +#ifdef HAVE_INITGROUPS errno = 0; if (initgroups (pw->pw_name, pw->pw_gid) == -1) error (1, errno, "cannot set groups");