diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | process.c | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Tue Mar 8 23:27:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com> + + * process.c (get_sc_ngroups_max): try to use NGROUPS_MAX at first if + _SC_NGROUP_MAX is not defined. + Tue Mar 8 23:10:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org> * misc/ruby-mode.el (ruby-parse-partial): fix for array in block. @@ -4550,6 +4550,8 @@ static int get_sc_ngroups_max(void) { #ifdef _SC_NGROUPS_MAX return (int)sysconf(_SC_NGROUPS_MAX); +#elif defined(NGROUPS_MAX) + return (int)NGROUPS_MAX; #else return 32; #endif |