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

ruby-changes:4697

From: ko1@a...
Date: Fri, 25 Apr 2008 14:45:41 +0900 (JST)
Subject: [ruby-changes:4697] nobu - Ruby:r16191 (trunk): * process.c: suppress warning.

nobu	2008-04-25 14:45:28 +0900 (Fri, 25 Apr 2008)

  New Revision: 16191

  Modified files:
    trunk/process.c

  Log:
    * process.c: suppress warning.

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/process.c?r1=16191&r2=16190&diff_format=u

Index: process.c
===================================================================
--- process.c	(revision 16190)
+++ process.c	(revision 16191)
@@ -1049,9 +1049,11 @@
 int
 rb_proc_exec(const char *str)
 {
+#ifndef _WIN32
     const char *s = str;
     char *ss, *t;
     char **argv, **a;
+#endif
 
     while (*str && ISSPACE(*str))
 	str++;
@@ -2093,12 +2095,14 @@
     return -1;
 }
 
+#ifdef HAVE_FORK
 static int
 rb_exec_atfork(void* arg)
 {
     rb_thread_atfork();
     return rb_exec(arg);
 }
+#endif
 
 #ifdef HAVE_FORK
 #ifdef FD_CLOEXEC
@@ -2828,7 +2832,9 @@
 static VALUE
 proc_getpgrp(void)
 {
+#if defined(HAVE_GETPGRP) && defined(GETPGRP_VOID) || defined(HAVE_GETPGID)
     rb_pid_t pgrp;
+#endif
 
     rb_secure(2);
 #if defined(HAVE_GETPGRP) && defined(GETPGRP_VOID)
@@ -4089,7 +4095,9 @@
 proc_daemon(int argc, VALUE *argv)
 {
     VALUE nochdir, noclose;
+#if defined(HAVE_DAEMON) || defined(HAVE_FORK)
     int n;
+#endif
 
     rb_secure(2);
     rb_scan_args(argc, argv, "02", &nochdir, &noclose);

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

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