From 30231731a9539e8b3474bd3ffa8e24624ea726d1 Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 18 Feb 2009 06:33:53 +0000 Subject: [PATCH] * io.c (pipe_open): sarg is always used unless HAVE_FORK. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++++ io.c | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 6c49dbb0bc..f70050f96f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Wed Feb 18 15:33:51 2009 Nobuyoshi Nakada + + * io.c (pipe_open): sarg is always used unless HAVE_FORK. + Wed Feb 18 15:23:34 2009 Akinori MUSHA * bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined. diff --git a/io.c b/io.c index 3655d61353..2ed05b3d56 100644 --- a/io.c +++ b/io.c @@ -4511,9 +4511,9 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode, #elif defined(_WIN32) volatile VALUE argbuf; char **args = NULL; - struct rb_exec_arg sarg; int pair[2], write_pair[2]; -#elif defined(__SYMBIAN32__) +#endif +#if !defined(HAVE_FORK) struct rb_exec_arg sarg; #endif FILE *fp = 0;