From 801bac0977abdb810d0c932c1fe82eb34ae66df3 Mon Sep 17 00:00:00 2001 From: naruse Date: Mon, 27 Jun 2011 18:36:55 +0000 Subject: [PATCH] Temporary hack for SIGILL of miniruby on FreeBSD. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32259 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- thread_pthread.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/thread_pthread.c b/thread_pthread.c index 0a4208adb8..5726e3ba93 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -1022,7 +1022,11 @@ static void consume_communication_pipe(void) { const size_t buff_size = 1024; +#ifdef __FreeBSD__ + char buff[buff_size]; +#else char buff[1024]; +#endif ssize_t result; retry: result = read(timer_thread_pipe[0], buff, buff_size);