summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-25 10:28:25 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-04-25 10:28:25 +0000
commit1b67ef40c284b6b6943fdc6e1916276a5e3b59e9 (patch)
tree65f797799874c6bf3c5831dc30b7d394e0c0df04 /process.c
parenta7adde7a57544625c0628136063a7110e6900fa4 (diff)
* process.c (proc_setegid): define only if needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23281 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 1e83d546ed..c473fe41e7 100644
--- a/process.c
+++ b/process.c
@@ -4897,7 +4897,7 @@ proc_getegid(VALUE obj)
return GIDT2NUM(egid);
}
-
+#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS)
/*
* call-seq:
* Process.egid = fixnum => fixnum
@@ -4932,6 +4932,7 @@ proc_setegid(VALUE obj, VALUE egid)
#endif
return egid;
}
+#endif
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID)
#define proc_setegid_m proc_setegid