From: Todd C. Miller Date: Mon, 12 Mar 2012 17:52:51 +0000 (-0400) Subject: Fix compilation when seteuid() is not available. X-Git-Tag: SUDO_1_8_5~1^2~157 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc727ff6d4c65d6b1238c5a6aba5db338ba7cba7;p=sudo Fix compilation when seteuid() is not available. --- diff --git a/src/sudo_edit.c b/src/sudo_edit.c index 16c705790..f7df6e812 100644 --- a/src/sudo_edit.c +++ b/src/sudo_edit.c @@ -16,8 +16,6 @@ #include -#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETEUID) - #include #include #include @@ -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) {