ruby-changes:10698
From: nobu <ko1@a...>
Date: Thu, 12 Feb 2009 23:26:31 +0900 (JST)
Subject: [ruby-changes:10698] Ruby:r22261 (trunk): * process.c (rb_fork): initialization with dynamic values is not
nobu 2009-02-12 23:26:02 +0900 (Thu, 12 Feb 2009) New Revision: 22261 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22261 Log: * process.c (rb_fork): initialization with dynamic values is not allowed in C89. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 22260) +++ process.c (revision 22261) @@ -2546,7 +2546,9 @@ rb_fork(int *status, int (*chfunc)(void*), void *charg, VALUE fds) { if (chfunc) { - struct chfunc_wrapper_t warg = { chfunc, charg }; + struct chfunc_wrapper_t warg; + warg.chfunc = chfunc; + warg.arg = charg; return rb_fork_err(status, chfunc_wrapper, &warg, fds, NULL, 0); } else { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/