summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-03 13:32:12 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2004-11-03 13:32:12 +0000
commit028d19ef5c7ea75602b64769edd02240139b1596 (patch)
tree5dec0bbcf8cfa0f1c829b23e01573c21cebb55b8 /process.c
parente9fb2e27313331240a9576954d3f59cbab2443d8 (diff)
On NetBSD don't use setruid() and setrgid().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@7193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/process.c b/process.c
index 004a35141d..5fa1b9510b 100644
--- a/process.c
+++ b/process.c
@@ -91,6 +91,11 @@ static VALUE S_Tms;
#define HAVE_44BSD_SETGID 1
#endif
+#ifdef __NetBSD__
+#undef HAVE_SETRUID
+#undef HAVE_SETRGID
+#endif
+
#if defined(__MacOS_X__) || defined(__bsdi__)
#define BROKEN_SETREUID 1
#define BROKEN_SETREGID 1