diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-27 11:21:10 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-04-27 11:21:10 +0000 |
commit | ab750920b9dfdab1117bc39e14bb28195b2b9830 (patch) | |
tree | dc66c4d89a952294b7523afbc5a3a2abecce3222 /thread_pthread.c | |
parent | 5c1d4c2adea918a8345893c9cdcf8bbc64887eb6 (diff) | |
download | ruby-ab750920b9dfdab1117bc39e14bb28195b2b9830.tar.gz |
* 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/trunk@40498 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 cae9006337..eb98024d2b 100644 --- a/thread_pthread.c +++ b/thread_pthread.c @@ -654,6 +654,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; } |