From dc727ff6d4c65d6b1238c5a6aba5db338ba7cba7 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 12 Mar 2012 13:52:51 -0400 Subject: [PATCH] Fix compilation when seteuid() is not available. --- src/sudo_edit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.40.0