Fix compilation when seteuid() is not available.

This commit is contained in:
Todd C. Miller
2012-03-12 13:52:51 -04:00
parent 4bd136e11a
commit dc727ff6d4

View File

@@ -16,8 +16,6 @@
#include <config.h>
#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETEUID)
#include <sys/types.h>
#include <sys/param.h>
#include <sys/stat.h>
@@ -54,6 +52,8 @@
#include "sudo.h"
#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETEUID)
static void
switch_user(uid_t euid, gid_t egid, int ngroups, GETGROUPS_T *groups)
{