зеркало из https://github.com/github/ruby.git
* configure.in (group_member): check if presents.
* configure.in (XCFLAGS): add _GNU_SOURCE on linux. * file.c (group_member): use system routine if available. * process.c: moved _GNU_SOURCE macro to Makefile. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
7912fdf599
Коммит
42850db14b
10
ChangeLog
10
ChangeLog
|
@ -1,3 +1,13 @@
|
|||
Thu Aug 23 17:25:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* configure.in (group_member): check if presents.
|
||||
|
||||
* configure.in (XCFLAGS): add _GNU_SOURCE on linux.
|
||||
|
||||
* file.c (group_member): use system routine if available.
|
||||
|
||||
* process.c: moved _GNU_SOURCE macro to Makefile.
|
||||
|
||||
Thu Aug 23 16:59:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* compile.c (compile_massign), insnhelper.ci (vm_throw): not use C99
|
||||
|
|
|
@ -594,7 +594,7 @@ AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd
|
|||
setitimer setruid seteuid setreuid setresuid setproctitle socketpair\
|
||||
setrgid setegid setregid setresgid issetugid pause lchown lchmod\
|
||||
getpgrp setpgrp getpgid setpgid initgroups getgroups setgroups\
|
||||
getpriority getrlimit setrlimit sysconf\
|
||||
getpriority getrlimit setrlimit sysconf group_member\
|
||||
dlopen sigprocmask sigaction _setjmp vsnprintf snprintf\
|
||||
setsid telldir seekdir fchmod mktime timegm cosh sinh tanh log2\
|
||||
setuid setgid daemon select_large_fdset setenv unsetenv)
|
||||
|
@ -1423,6 +1423,9 @@ if test "$rb_with_pthread" = "yes"; then
|
|||
THREAD_MODEL=pthread
|
||||
fi
|
||||
case "$target_os" in
|
||||
linux*)
|
||||
XCFLAGS="$XCFLAGS -D_GNU_SOURCE=1"
|
||||
;;
|
||||
netbsd*)
|
||||
CFLAGS="$CFLAGS -pipe"
|
||||
;;
|
||||
|
|
2
file.c
2
file.c
|
@ -785,6 +785,7 @@ rb_file_lstat(VALUE obj)
|
|||
#endif
|
||||
}
|
||||
|
||||
#ifndef HAVE_GROUP_MEMBER
|
||||
static int
|
||||
group_member(GETGROUPS_T gid)
|
||||
{
|
||||
|
@ -813,6 +814,7 @@ group_member(GETGROUPS_T gid)
|
|||
#endif
|
||||
return Qfalse;
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef S_IXUGO
|
||||
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
|
||||
|
|
|
@ -12,9 +12,6 @@
|
|||
|
||||
**********************************************************************/
|
||||
|
||||
#ifdef linux
|
||||
#define _GNU_SOURCE 1
|
||||
#endif
|
||||
#include "ruby/ruby.h"
|
||||
#include "ruby/signal.h"
|
||||
#include "vm_core.h"
|
||||
|
|
Загрузка…
Ссылка в новой задаче