summaryrefslogtreecommitdiffstats
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
commit7b20e9b0422be4406f6ffa5d7a2d7d04e4af6a0f (patch)
tree5dec0bbcf8cfa0f1c829b23e01573c21cebb55b8 /process.c
parent73a283ad0c00eabfb01d32153d09c866b0499cec (diff)
downloadruby-7b20e9b0422be4406f6ffa5d7a2d7d04e4af6a0f.tar.gz
ruby-7b20e9b0422be4406f6ffa5d7a2d7d04e4af6a0f.tar.xz
ruby-7b20e9b0422be4406f6ffa5d7a2d7d04e4af6a0f.zip
On NetBSD don't use setruid() and setrgid().
git-svn-id: http://svn.ruby-lang.org/repos/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 004a35141..5fa1b9510 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