summaryrefslogtreecommitdiff
path: root/signal.c
diff options
context:
space:
mode:
Diffstat (limited to 'signal.c')
-rw-r--r--signal.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/signal.c b/signal.c
index e1b757e8c3..e946337ae7 100644
--- a/signal.c
+++ b/signal.c
@@ -18,6 +18,10 @@
#include <errno.h>
#include "atomic.h"
+#if defined(__native_client__) && defined(NACL_NEWLIB)
+# include "nacl/signal.h"
+#endif
+
#ifdef NEED_RUBY_ATOMIC_EXCHANGE
rb_atomic_t
ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val)
@@ -417,8 +421,6 @@ typedef RETSIGTYPE ruby_sigaction_t(int);
#define SIGINFO_ARG
#endif
-#ifdef POSIX_SIGNAL
-
#ifdef USE_SIGALTSTACK
/* alternate stack for SIGSEGV */
void
@@ -437,6 +439,7 @@ rb_register_sigaltstack(rb_thread_t *th)
}
#endif /* USE_SIGALTSTACK */
+#ifdef POSIX_SIGNAL
static sighandler_t
ruby_signal(int signum, sighandler_t handler)
{