aboutsummaryrefslogtreecommitdiffstats
path: root/thread_pthread.c
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-23 05:56:25 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-10-23 05:56:25 +0000
commit9e12793a0bc1c28e57d1d61891174997061cf1a6 (patch)
treeaa6148c34b5fcc74078e7bf822bbbd1bb2c0a41b /thread_pthread.c
parent209f1e75308c78667a5a241d331dfa97ddfce864 (diff)
downloadruby-9e12793a0bc1c28e57d1d61891174997061cf1a6.tar.gz
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 9576cd3ed7..0a3fee373d 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -27,9 +27,6 @@
#ifdef HAVE_SYS_PRCTL_H
#include <sys/prctl.h>
#endif
-#if defined(__native_client__) && defined(NACL_NEWLIB)
-# include "nacl/select.h"
-#endif
#if defined(HAVE_SYS_TIME_H)
#include <sys/time.h>
#endif
@@ -64,7 +61,7 @@ static struct {
#define USE_MONOTONIC_COND 0
#endif
-#if defined(HAVE_POLL) && defined(HAVE_FCNTL) && defined(F_GETFL) && defined(F_SETFL) && defined(O_NONBLOCK) && !defined(__native_client__)
+#if defined(HAVE_POLL) && defined(HAVE_FCNTL) && defined(F_GETFL) && defined(F_SETFL) && defined(O_NONBLOCK)
/* The timer thread sleeps while only one Ruby thread is running. */
# define USE_SLEEPY_TIMER_THREAD 1
#else
@@ -460,9 +457,7 @@ Init_native_thread(void)
#ifdef USE_UBF_LIST
native_mutex_initialize(&ubf_list_lock);
#endif
-#ifndef __native_client__
posix_signal(SIGVTALRM, null_func);
-#endif
}
static void