]> granicus.if.org Git - sudo/commitdiff
Fix compilation when seteuid() is not available.
authorTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 12 Mar 2012 17:52:51 +0000 (13:52 -0400)
committerTodd C. Miller <Todd.Miller@courtesan.com>
Mon, 12 Mar 2012 17:52:51 +0000 (13:52 -0400)
src/sudo_edit.c

index 16c705790b849b44927b2c6ecb3792a9429acc85..f7df6e81234eca4ebd066b1941ff3358897b041e 100644 (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)
 {