diff options
-rw-r--r-- | configure.in | 5 | ||||
-rw-r--r-- | file.c | 2 | ||||
-rw-r--r-- | version.h | 2 |
3 files changed, 7 insertions, 2 deletions
diff --git a/configure.in b/configure.in index 29c19d2b0e..fc64335a06 100644 --- a/configure.in +++ b/configure.in @@ -537,7 +537,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid syscall chroot fsync getcwd eaccess\ setproctitle setrgid setegid setregid setresgid issetugid pause\ lchown lchmod getpgrp setpgrp getpgid setpgid initgroups\ getgroups setgroups getpriority getrlimit setrlimit sysconf\ - dlopen sigprocmask\ + group_member dlopen sigprocmask\ sigaction _setjmp setsid telldir seekdir fchmod mktime timegm\ cosh sinh tanh setuid setgid setenv unsetenv) AC_ARG_ENABLE(setreuid, @@ -1401,6 +1401,9 @@ fi AC_SUBST(RDOCTARGET) case "$target_os" in + linux*) + XCFLAGS="$XCFLAGS -D_GNU_SOURCE=1" + ;; netbsd*) CFLAGS="$CFLAGS -pipe" ;; @@ -815,6 +815,7 @@ rb_file_lstat(obj) #endif } +#ifndef HAVE_GROUP_MEMBER static int group_member(gid) GETGROUPS_T gid; @@ -844,6 +845,7 @@ group_member(gid) #endif return Qfalse; } +#endif #ifndef S_IXUGO # define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2007-09-07" #define RUBY_VERSION_CODE 186 #define RUBY_RELEASE_CODE 20070907 -#define RUBY_PATCHLEVEL 96 +#define RUBY_PATCHLEVEL 97 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 |