summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-05 05:08:23 (GMT)
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-05 05:08:23 (GMT)
commiteb78d224e3bb0747d4ae671e3aa4068d94398d00 (patch)
treeca5a39396189c0237d4faa44b2ad7e4c43455ab6 /addr2line.c
parent8fb2058d825f1e795153255ea99ecc4aa70ed414 (diff)
* 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
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/addr2line.c b/addr2line.c
index ea61c15..71ebf03 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -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