Permalink
Browse files

* addr2line.c: fix r32407 to check HAVE_ALLOCA_H.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information...
1 parent 8fb2058 commit eb78d224e3bb0747d4ae671e3aa4068d94398d00 @mame mame committed Jul 5, 2011
Showing with 9 additions and 1 deletion.
  1. +4 −0 ChangeLog
  2. +5 −1 addr2line.c
View
@@ -1,3 +1,7 @@
+Tue Jul 5 13:49:26 2011 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * addr2line.c: fix r32407 to check HAVE_ALLOCA_H.
+
Tue Jul 5 14:05:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
* lib/webrick/httpauth/digestauth.rb (_authenticate):
View
@@ -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

0 comments on commit eb78d22

Please sign in to comment.