From eac50243c94cdeb3ab5016d3cd42c51d71e2d3aa Mon Sep 17 00:00:00 2001 From: normal Date: Sun, 18 Feb 2018 21:03:13 +0000 Subject: [PATCH] thread.c: remove redundant USE_SIGALTSTACK #define thread.c already includes vm_core.h where USE_SIGALTSTACK is defined, #include it explicitly (eval_intern.h already includes it) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/thread.c b/thread.c index e429808fc9..56fd7f9926 100644 --- a/thread.c +++ b/thread.c @@ -73,6 +73,7 @@ #include "ruby/debug.h" #include "internal.h" #include "iseq.h" +#include "vm_core.h" #ifndef USE_NATIVE_THREAD_PRIORITY #define USE_NATIVE_THREAD_PRIORITY 0 @@ -2243,10 +2244,6 @@ rb_threadptr_signal_exit(rb_thread_t *th) rb_threadptr_raise(th->vm->main_thread, 2, argv); } -#if defined(POSIX_SIGNAL) && defined(SIGSEGV) && defined(HAVE_SIGALTSTACK) -#define USE_SIGALTSTACK -#endif - int rb_ec_set_raised(rb_execution_context_t *ec) {