summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-09 10:02:36 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-06-09 10:02:36 +0000
commit1fe598da35b01627da052926aa5409502517846b (patch)
tree649e93411cd592545f07797488cd7b90ab76d89c /process.c
parent31094808f99856180fb45e4fd5359621788b28f3 (diff)
* configure.in: checks presence of grp.h and setgroups().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/process.c b/process.c
index 0fffb6d..972c9e8 100644
--- a/process.c
+++ b/process.c
@@ -45,7 +45,7 @@ struct timeval rb_time_interval _((VALUE));
#include <sys/times.h>
#endif
-#ifdef HAVE_GETGROUPS
+#ifdef HAVE_GRP_H
#include <grp.h>
#endif
@@ -1255,7 +1255,7 @@ proc_getgroups(VALUE obj)
static VALUE
proc_setgroups(VALUE obj, VALUE ary)
{
-#ifdef HAVE_GETGROUPS
+#ifdef HAVE_SETGROUPS
size_t ngroups;
gid_t *groups;
int i;