]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
.
authorJim Meyering <jim@meyering.net>
Tue, 11 Oct 1994 01:56:53 +0000 (01:56 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 11 Oct 1994 01:56:53 +0000 (01:56 +0000)
login-utils/su.c

index 4a1640767afe56379f8636e4556cb2ea601f71cd..a447a1a506f5f0c8319b6afff54a0ca090c31e62 100644 (file)
@@ -77,7 +77,7 @@
 #include <grp.h>
 #include "system.h"
 
-#ifdef HAVE_SYSLOG_H
+#if defined(HAVE_SYSLOG_H) && defined(HAVE_SYSLOG)
 #include <syslog.h>
 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");