summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-25 09:26:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-25 09:26:58 +0000
commit16acb620227bd7313300f45b9dbec946ab7b1914 (patch)
treec5c113dd0dd6b054bc2a0e847a4c417308982182 /process.c
parent1d103770c6e14914a85cf1c9232f130b7df8eaf4 (diff)
* process.c (proc_seteuid): define only if needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/process.c b/process.c
index 79f595b28f..1e83d546ed 100644
--- a/process.c
+++ b/process.c
@@ -4777,7 +4777,7 @@ proc_geteuid(VALUE obj)
return UIDT2NUM(euid);
}
-
+#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETEUID) || defined(HAVE_SETUID) || defined(_POSIX_SAVED_IDS)
/*
* call-seq:
* Process.euid= integer
@@ -4812,6 +4812,7 @@ proc_seteuid(VALUE obj, VALUE euid)
#endif
return euid;
}
+#endif
#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETEUID) || defined(HAVE_SETUID)
#define proc_seteuid_m proc_seteuid