summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-14 02:25:02 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-14 02:25:02 +0000
commitd1fb37bca8ee20fe3005df7b11a97b9710c76e84 (patch)
tree3a2fa6b24d12aa2148604a05f2b20346bf118dd6 /process.c
parent9075d3ef51c0e1240cd2c97c3602146d86eb9901 (diff)
downloadruby-d1fb37bca8ee20fe3005df7b11a97b9710c76e84.tar.gz
process.c: initgroups on cygwin
* process.c (initgroups): not declared on cygwin if _POSIX_SOURCE or _XOPEN_SOURCE are defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/process.c b/process.c
index ca061adde6..674b456bd8 100644
--- a/process.c
+++ b/process.c
@@ -85,6 +85,9 @@
#endif
#ifdef HAVE_GRP_H
#include <grp.h>
+# ifdef __CYGWIN__
+int initgroups(const char *, rb_gid_t);
+# endif
#endif
#ifdef HAVE_SYS_ID_H
#include <sys/id.h>