[前][次][番号順一覧][スレッド一覧]

ruby-changes:1749

From: ko1@a...
Date: 23 Aug 2007 17:25:43 +0900
Subject: [ruby-changes:1749] nobu - Ruby:r13240 (trunk): * configure.in (group_member): check if presents.

nobu	2007-08-23 17:25:12 +0900 (Thu, 23 Aug 2007)

  New Revision: 13240

  Modified files:
    trunk/ChangeLog
    trunk/configure.in
    trunk/file.c
    trunk/process.c

  Log:
    * 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.


  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/file.c?r1=13240&r2=13239
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/ChangeLog?r1=13240&r2=13239
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/configure.in?r1=13240&r2=13239
  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=13240&r2=13239

Index: configure.in
===================================================================
--- configure.in	(revision 13239)
+++ configure.in	(revision 13240)
@@ -594,7 +594,7 @@
 	      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 @@
     THREAD_MODEL=pthread
 fi
 case "$target_os" in
+    linux*)
+	XCFLAGS="$XCFLAGS -D_GNU_SOURCE=1"
+	;;
     netbsd*)
     	CFLAGS="$CFLAGS -pipe"
 	;;
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 13239)
+++ ChangeLog	(revision 13240)
@@ -1,3 +1,13 @@
+Thu Aug 23 17:25:05 2007  Nobuyoshi Nakada  <nobu@r...>
+
+	* 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@r...>
 
 	* compile.c (compile_massign), insnhelper.ci (vm_throw): not use C99
Index: process.c
===================================================================
--- process.c	(revision 13239)
+++ process.c	(revision 13240)
@@ -12,9 +12,6 @@
 
 **********************************************************************/
 
-#ifdef linux
-#define _GNU_SOURCE 1
-#endif
 #include "ruby/ruby.h"
 #include "ruby/signal.h"
 #include "vm_core.h"
Index: file.c
===================================================================
--- file.c	(revision 13239)
+++ file.c	(revision 13240)
@@ -785,6 +785,7 @@
 #endif
 }
 
+#ifndef HAVE_GROUP_MEMBER
 static int
 group_member(GETGROUPS_T gid)
 {
@@ -813,6 +814,7 @@
 #endif
     return Qfalse;
 }
+#endif
 
 #ifndef S_IXUGO
 #  define S_IXUGO		(S_IXUSR | S_IXGRP | S_IXOTH)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml

[前][次][番号順一覧][スレッド一覧]