aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rw-r--r--thread_pthread.c1
2 files changed, 7 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 60a63bbe8c..43ea74caa1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Apr 27 20:19:21 2013 Tanaka Akira <akr@fsij.org>
+
+ * thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
+ This fixes a compilation failure while cross-compiling for Tensilica
+ Xtensa Processor.
+
Sat Apr 27 19:32:44 2013 Benoit Daloze <eregontp@gmail.com>
* thread.c: fix typos and documentation
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;
}