summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 33b609e..52eb495 100644
--- a/io.c
+++ b/io.c
@@ -5506,8 +5506,10 @@ pipe_open(VALUE execarg_obj, const char *modestr, int fmode, convconfig_t *convc
spawnv(P_NOWAIT, (cmd), (args)) : \
spawn(P_NOWAIT, (cmd)))
# endif
+# if !defined(HAVE_FORK)
char **args = NULL;
char **envp = NULL;
+# endif
#endif
#if !defined(HAVE_FORK)
struct rb_execarg sarg, *sargp = &sarg;