From 0e2d2e6a794d3e9e6a55be37b9b640c902bc501b Mon Sep 17 00:00:00 2001 From: hsbt Date: Mon, 23 Oct 2017 05:56:25 +0000 Subject: Drop to support NaCl platform. Because NaCl and PNaCl are already sunset status. see https://bugs.chromium.org/p/chromium/issues/detail?id=239656#c160 configure.ac: Patch for this file was provided by @nobu. [Feature #14041][ruby-core:83497][fix GH-1726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60374 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'process.c') diff --git a/process.c b/process.c index 97ba885fca..cb3312f859 100644 --- a/process.c +++ b/process.c @@ -61,13 +61,6 @@ #include "ruby/st.h" #include -#if defined(__native_client__) && defined(NACL_NEWLIB) -# include -# include "nacl/stat.h" -# include "nacl/unistd.h" -# include "nacl/resource.h" -# undef HAVE_ISSETUGID -#endif #ifdef HAVE_SYS_TIME_H #include @@ -1219,7 +1212,7 @@ security(const char *str) } } -#if defined(HAVE_WORKING_FORK) && !defined(__native_client__) +#if defined(HAVE_WORKING_FORK) /* try_with_sh and exec_with_sh should be async-signal-safe. Actually it is.*/ #define try_with_sh(prog, argv, envp) ((saved_errno == ENOEXEC) ? exec_with_sh((prog), (argv), (envp)) : (void)0) @@ -1242,10 +1235,6 @@ exec_with_sh(const char *prog, char **argv, char **envp) static int proc_exec_cmd(const char *prog, VALUE argv_str, VALUE envp_str) { -#ifdef __native_client__ - rb_notimplement(); - UNREACHABLE; -#else char **argv; #ifndef _WIN32 char **envp; @@ -1269,17 +1258,12 @@ proc_exec_cmd(const char *prog, VALUE argv_str, VALUE envp_str) preserving_errno(try_with_sh(prog, argv, envp)); /* try_with_sh() is async-signal-safe. */ #endif return -1; -#endif } /* This function should be async-signal-safe. Actually it is. */ static int proc_exec_sh(const char *str, VALUE envp_str) { -#ifdef __native_client__ - rb_notimplement(); - UNREACHABLE; -#else const char *s; s = str; @@ -1315,7 +1299,6 @@ proc_exec_sh(const char *str, VALUE envp_str) #endif return -1; #endif /* _WIN32 */ -#endif } int -- cgit v1.2.3