From f896ad3b49461dbdee5e47e8224051ff46e75d95 Mon Sep 17 00:00:00 2001 From: naruse Date: Thu, 23 Aug 2012 02:59:24 +0000 Subject: * configure.in: Fixing Haiku build. - -lbe is not required for linking - stack protector doesn't work for now because of the default gcc's bug by Takashi Toyoshima https://github.com/ruby/ruby/pull/167 * signal.c (ruby_signal): haiku doesn't have SIGBUS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- signal.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'signal.c') diff --git a/signal.c b/signal.c index bd0313bfdd..b76044c625 100644 --- a/signal.c +++ b/signal.c @@ -463,7 +463,11 @@ ruby_signal(int signum, sighandler_t handler) sigact.sa_flags |= SA_NOCLDWAIT; #endif #if defined(SA_ONSTACK) && defined(USE_SIGALTSTACK) - if (signum == SIGSEGV || signum == SIGBUS) + if (signum == SIGSEGV +#ifdef SIGBUS + || signum == SIGBUS +#endif + ) sigact.sa_flags |= SA_ONSTACK; #endif if (sigaction(signum, &sigact, &old) < 0) { -- cgit v1.2.3