summaryrefslogtreecommitdiff
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 33b609e915..52eb49574b 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;