summaryrefslogtreecommitdiffstats
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
commita2cf7831b8e2547cff9ac816ce451c15ec254258 (patch)
tree65f797799874c6bf3c5831dc30b7d394e0c0df04 /process.c
parent374a12bf5daec221efcb6098716a126789ad9e2c (diff)
downloadruby-a2cf7831b8e2547cff9ac816ce451c15ec254258.tar.gz
ruby-a2cf7831b8e2547cff9ac816ce451c15ec254258.tar.xz
ruby-a2cf7831b8e2547cff9ac816ce451c15ec254258.zip
* process.c (proc_setegid): define only if needed.
git-svn-id: http://svn.ruby-lang.org/repos/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 1e83d546e..c473fe41e 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