From 6941189b948ad67b9b46e09fe16f3a5f5410746c Mon Sep 17 00:00:00 2001 From: nobu Date: Wed, 1 Apr 2009 09:53:52 +0000 Subject: * vm_dump.c (rb_vm_bugreport): should not #include inside a function, since headers may have declarations. c.f. [ruby-core:23095] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@23112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_dump.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'vm_dump.c') diff --git a/vm_dump.c b/vm_dump.c index 7aae51090e..191dbc4c2b 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -576,6 +576,9 @@ bugreport_backtrace(void *arg, const char *file, int line, const char *method) return 0; } +#if HAVE_BACKTRACE +#include +#endif void rb_vm_bugreport(void) { @@ -589,7 +592,6 @@ rb_vm_bugreport(void) } #if HAVE_BACKTRACE -#include #define MAX_NATIVE_TRACE 1024 { static void *trace[MAX_NATIVE_TRACE]; -- cgit v1.2.3