summaryrefslogtreecommitdiff
path: root/thread_pthread.c
diff options
context:
space:
mode:
authornagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 14:49:26 +0000
committernagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-04-26 14:49:26 +0000
commita2ac434a0700d5bd08bf213b4ede09899330f9df (patch)
tree232741117bef95b06120259a57aa6cd113e35627 /thread_pthread.c
parent4a90d9e8a565b3125baf2c45ce6673184dba0bfa (diff)
merge revision(s) 40476: [Backport #8332]
* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION. This fixes a compilation failure while cross-compiling for ARM. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r--thread_pthread.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c
index 6c22870c1e..46a8652192 100644
--- a/thread_pthread.c
+++ b/thread_pthread.c
@@ -687,6 +687,7 @@ ruby_init_stack(volatile VALUE *addr
/* it should be on co-routine (alternative stack). [Feature #2294] */
{
void *start, *end;
+ STACK_GROW_DIR_DETECTION;
if (IS_STACK_DIR_UPPER()) {
start = native_main_thread.stack_start;