From d3a7a3d262f8a68717d18acdbe338e7b35d4486a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 11 Oct 1994 01:56:53 +0000 Subject: . --- src/id.c | 4 ++-- src/su.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/id.c b/src/id.c index 92f2bd6c7..9f1daa88a 100644 --- a/src/id.c +++ b/src/id.c @@ -240,7 +240,7 @@ print_group_list (username) print_group (egid); } -#ifdef NGROUPS_MAX +#if defined(NGROUPS_MAX) && defined(HAVE_GETGROUPS) { int ngroups; GETGROUPS_T *groups; @@ -313,7 +313,7 @@ print_full_info (username) printf ("(%s)", grp->gr_name); } -#ifdef NGROUPS_MAX +#if defined(NGROUPS_MAX) && defined(HAVE_GETGROUPS) { int ngroups; GETGROUPS_T *groups; diff --git a/src/su.c b/src/su.c index 4a1640767..a447a1a50 100644 --- a/src/su.c +++ b/src/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"); -- cgit v1.2.3-70-g09d2