diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-16 17:00:19 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2021-08-16 17:00:19 +0900 |
commit | a8714b83c40c8736b4ddafef08fa5f0091c9b101 (patch) | |
tree | 2faa2d2c4f1772907155df16a804b01618cd3348 /io.c | |
parent | 07b12a1f4829ca3c7d60d56bb5c89069f0758d4c (diff) |
`popen()` is not available on emscripten
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4745
Diffstat (limited to 'io.c')
-rw-r--r-- | io.c | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -6625,6 +6625,7 @@ struct popen_arg { #endif #ifdef HAVE_WORKING_FORK +# ifndef __EMSCRIPTEN__ static void popen_redirect(struct popen_arg *p) { @@ -6655,6 +6656,7 @@ popen_redirect(struct popen_arg *p) } } } +# endif #if defined(__linux__) /* Linux /proc/self/status contains a line: "FDSize:\t<nnn>\n" @@ -6735,6 +6737,7 @@ rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds) #endif } +# ifndef __EMSCRIPTEN__ static int popen_exec(void *pp, char *errmsg, size_t errmsg_len) { @@ -6742,9 +6745,10 @@ popen_exec(void *pp, char *errmsg, size_t errmsg_len) return rb_exec_async_signal_safe(p->eargp, errmsg, errmsg_len); } +# endif #endif -#if defined(HAVE_WORKING_FORK) || defined(HAVE_SPAWNV) +#if (defined(HAVE_WORKING_FORK) || defined(HAVE_SPAWNV)) && !defined __EMSCRIPTEN__ static VALUE rb_execarg_fixup_v(VALUE execarg_obj) { |