diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-27 18:36:55 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-06-27 18:36:55 +0000 |
commit | 801bac0977abdb810d0c932c1fe82eb34ae66df3 (patch) | |
tree | ff195773eec9cd1779cf8428449745be2ab0f3de /thread_pthread.c | |
parent | bb6384761e6c32acd169faa337d77d7e8d1efe5e (diff) | |
download | ruby-801bac0977abdb810d0c932c1fe82eb34ae66df3.tar.gz |
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
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 4 |
1 files changed, 4 insertions, 0 deletions
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); |