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

ruby-changes:11643

From: nobu <ko1@a...>
Date: Sat, 25 Apr 2009 19:28:33 +0900 (JST)
Subject: [ruby-changes:11643] Ruby:r23281 (trunk): * process.c (proc_setegid): define only if needed.

nobu	2009-04-25 19:28:25 +0900 (Sat, 25 Apr 2009)

  New Revision: 23281

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=23281

  Log:
    * process.c (proc_setegid): define only if needed.

  Modified files:
    trunk/process.c

Index: process.c
===================================================================
--- process.c	(revision 23280)
+++ process.c	(revision 23281)
@@ -4897,7 +4897,7 @@
     return GIDT2NUM(egid);
 }
 
-
+#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS)
 /*
  *  call-seq:
  *     Process.egid = fixnum   => fixnum
@@ -4932,6 +4932,7 @@
 #endif
     return egid;
 }
+#endif
 
 #if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID)
 #define proc_setegid_m proc_setegid

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

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