summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--configure.in5
-rw-r--r--file.c2
-rw-r--r--version.h2
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"
;;
diff --git a/file.c b/file.c
index cff6b3226e..52fe96c436 100644
--- a/file.c
+++ b/file.c
@@ -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)
diff --git a/version.h b/version.h
index 20e0d480b4..f227166853 100644
--- a/version.h
+++ b/version.h
@@ -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