[前][次][番号順一覧][スレッド一覧]

ruby-changes:28446

From: akr <ko1@a...>
Date: Sat, 27 Apr 2013 20:21:25 +0900 (JST)
Subject: [ruby-changes:28446] akr:r40498 (trunk): * thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.

akr	2013-04-27 20:21:10 +0900 (Sat, 27 Apr 2013)

  New Revision: 40498

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40498

  Log:
    * thread_pthread.c (ruby_init_stack): Add STACK_GROW_DIR_DETECTION.
      This fixes a compilation failure while cross-compiling for Tensilica
      Xtensa Processor.

  Modified files:
    trunk/ChangeLog
    trunk/thread_pthread.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 40497)
+++ ChangeLog	(revision 40498)
@@ -1,3 +1,9 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Apr 27 20:19:21 2013  Tanaka Akira  <akr@f...>
+
+	* 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@g...>
 
 	* thread.c: fix typos and documentation
Index: thread_pthread.c
===================================================================
--- thread_pthread.c	(revision 40497)
+++ thread_pthread.c	(revision 40498)
@@ -654,6 +654,7 @@ ruby_init_stack(volatile VALUE *addr https://github.com/ruby/ruby/blob/trunk/thread_pthread.c#L654
 #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;
 	}

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]