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

ruby-changes:20363

From: mame <ko1@a...>
Date: Tue, 5 Jul 2011 14:08:30 +0900 (JST)
Subject: [ruby-changes:20363] mame:r32411 (trunk): * addr2line.c: fix r32407 to check HAVE_ALLOCA_H.

mame	2011-07-05 14:08:23 +0900 (Tue, 05 Jul 2011)

  New Revision: 32411

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

  Log:
    * addr2line.c: fix r32407 to check HAVE_ALLOCA_H.

  Modified files:
    trunk/ChangeLog
    trunk/addr2line.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 32410)
+++ ChangeLog	(revision 32411)
@@ -1,3 +1,7 @@
+Tue Jul  5 13:49:26 2011  Yusuke Endoh  <mame@t...>
+
+	* addr2line.c: fix r32407 to check HAVE_ALLOCA_H.
+
 Tue Jul  5 14:05:43 2011  NARUSE, Yui  <naruse@r...>
 
 	* lib/webrick/httpauth/digestauth.rb (_authenticate):
Index: addr2line.c
===================================================================
--- addr2line.c	(revision 32410)
+++ addr2line.c	(revision 32411)
@@ -8,6 +8,7 @@
 
 **********************************************************************/
 
+#include "ruby/config.h"
 #include "addr2line.h"
 
 #include <stdio.h>
@@ -24,13 +25,16 @@
 #include <limits.h>
 #include <stdio.h>
 #include <stdlib.h>
-#include <alloca.h>
 #include <string.h>
 #include <sys/mman.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
 
+#if defined(HAVE_ALLOCA_H)
+#include <alloca.h>
+#endif
+
 #ifdef HAVE_DL_ITERATE_PHDR
 # ifndef _GNU_SOURCE
 #  define _GNU_SOURCE

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

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