io.c: popen is not available on emscripten
This commit is contained in:
parent
9efd590a13
commit
33fb87cc9c
9
io.c
9
io.c
@ -6647,6 +6647,7 @@ rb_execarg_fixup_v(VALUE execarg_obj)
|
|||||||
char *rb_execarg_commandline(const struct rb_execarg *eargp, VALUE *prog);
|
char *rb_execarg_commandline(const struct rb_execarg *eargp, VALUE *prog);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __EMSCRIPTEN__
|
||||||
static VALUE
|
static VALUE
|
||||||
pipe_open(VALUE execarg_obj, const char *modestr, int fmode,
|
pipe_open(VALUE execarg_obj, const char *modestr, int fmode,
|
||||||
const convconfig_t *convconfig)
|
const convconfig_t *convconfig)
|
||||||
@ -6876,6 +6877,14 @@ pipe_open(VALUE execarg_obj, const char *modestr, int fmode,
|
|||||||
#endif
|
#endif
|
||||||
return port;
|
return port;
|
||||||
}
|
}
|
||||||
|
#else
|
||||||
|
static VALUE
|
||||||
|
pipe_open(VALUE execarg_obj, const char *modestr, int fmode,
|
||||||
|
const convconfig_t *convconfig)
|
||||||
|
{
|
||||||
|
rb_raise(rb_eNotImpError, "popen() is not available");
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static int
|
static int
|
||||||
is_popen_fork(VALUE prog)
|
is_popen_fork(VALUE prog)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user