diff options
author | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-01 15:40:57 +0000 |
---|---|---|
committer | nagachika <nagachika@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-01 15:40:57 +0000 |
commit | 5362d2e2cb0c54c098fd2ff2f5cd0c2a2434ecb7 (patch) | |
tree | fa1ce1d0053b9fe83be13170b26b4e0a9cea1402 /thread_pthread.c | |
parent | 83222f7c654935068fe9f496482cefd671cfa895 (diff) |
merge revision(s) 40498:
* thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
This fixes a compilation failure while cross-compiling for Tensilica
Xtensa Processor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_0_0@40546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.c')
-rw-r--r-- | thread_pthread.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/thread_pthread.c b/thread_pthread.c index 46a8652192..e08f3decb8 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -669,6 +669,7 @@ ruby_init_stack(volatile VALUE *addr #elif defined(HAVE_GETRLIMIT) int pagesize = getpagesize(); struct rlimit rlim; + STACK_GROW_DIR_DETECTION; if (getrlimit(RLIMIT_STACK, &rlim) == 0) { size = (size_t)rlim.rlim_cur; } |