mirror of
https://github.com/ruby/ruby.git
synced 2025-09-16 00:54:01 +02:00
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
This commit is contained in:
parent
83222f7c65
commit
5362d2e2cb
3 changed files with 8 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue