summaryrefslogtreecommitdiffstats
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
commit7eb7c57f48a750c7c1fedc74a2b89e025001cd72 (patch)
tree649e93411cd592545f07797488cd7b90ab76d89c
parentd7c26ab06b73456376bdc6e47cfd93cd7c7f6e04 (diff)
downloadruby-7eb7c57f48a750c7c1fedc74a2b89e025001cd72.tar.gz
ruby-7eb7c57f48a750c7c1fedc74a2b89e025001cd72.tar.xz
ruby-7eb7c57f48a750c7c1fedc74a2b89e025001cd72.zip
* configure.in: checks presence of grp.h and setgroups().
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3921 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--configure.in4
-rw-r--r--process.c4
3 files changed, 7 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 6d0eadc42..72656f12f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,6 @@
-Mon Jun 9 13:27:13 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+Mon Jun 9 19:02:33 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * configure.in: checks presence of grp.h and setgroups().
* process.c (proc_getgroups, proc_setgroups): raise
NotImplementedError unless available. [ruby-talk:73014]
diff --git a/configure.in b/configure.in
index c922fabb5..789c21cb6 100644
--- a/configure.in
+++ b/configure.in
@@ -352,7 +352,7 @@ AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(stdlib.h string.h unistd.h limits.h sys/file.h sys/ioctl.h\
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
- syscall.h pwd.h a.out.h utime.h memory.h direct.h sys/resource.h \
+ syscall.h pwd.h grp.h a.out.h utime.h memory.h direct.h sys/resource.h \
sys/mkdev.h sys/utime.h float.h)
dnl Checks for typedefs, structures, and compiler characteristics.
@@ -376,7 +376,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid syscall chroot fsync\
truncate chsize times utimes fcntl lockf lstat symlink readlink\
setitimer setruid seteuid setreuid setresuid setproctitle\
setrgid setegid setregid setresgid pause lchown lchmod\
- getpgrp setpgrp getpgid setpgid getgroups getpriority getrlimit\
+ getpgrp setpgrp getpgid setpgid getgroups setgroups getpriority getrlimit\
dlopen sigprocmask sigaction _setjmp setsid telldir seekdir fchmod\
mktime timegm cosh sinh tanh)
AC_STRUCT_TIMEZONE
diff --git a/process.c b/process.c
index 0fffb6df6..972c9e8ee 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;