mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* process.c (proc_setegid): define only if needed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a7adde7a57
commit
1b67ef40c2
1 changed files with 2 additions and 1 deletions
|
@ -4897,7 +4897,7 @@ proc_getegid(VALUE obj)
|
|||
return GIDT2NUM(egid);
|
||||
}
|
||||
|
||||
|
||||
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS)
|
||||
/*
|
||||
* call-seq:
|
||||
* Process.egid = fixnum => fixnum
|
||||
|
@ -4932,6 +4932,7 @@ proc_setegid(VALUE obj, VALUE egid)
|
|||
#endif
|
||||
return egid;
|
||||
}
|
||||
#endif
|
||||
|
||||
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID)
|
||||
#define proc_setegid_m proc_setegid
|
||||
|
|
Loading…
Reference in a new issue