aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index b6c6157598..10d512a58b 100644
--- a/io.c
+++ b/io.c
@@ -5494,8 +5494,10 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
int write_fd = -1;
#if !defined(HAVE_FORK)
const char *cmd = 0;
+#if !defined(_WIN32)
int argc;
VALUE *argv;
+#endif
if (prog)
cmd = StringValueCStr(prog);