diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-01 09:53:52 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-04-01 09:53:52 +0000 |
| commit | 945d47f9f69d2b164481ea5be70cf7d2bbe3e381 (patch) | |
| tree | d2ebae07d8c57109492587c6a9cb57e0b287130c /vm_dump.c | |
| parent | 4f82c3dfe6463f6726e35f26490e7d1ff3df11de (diff) | |
| download | ruby-945d47f9f69d2b164481ea5be70cf7d2bbe3e381.tar.gz ruby-945d47f9f69d2b164481ea5be70cf7d2bbe3e381.tar.xz ruby-945d47f9f69d2b164481ea5be70cf7d2bbe3e381.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@23112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
| -rw-r--r-- | vm_dump.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -576,6 +576,9 @@ bugreport_backtrace(void *arg, const char *file, int line, const char *method) return 0; } +#if HAVE_BACKTRACE +#include <execinfo.h> +#endif void rb_vm_bugreport(void) { @@ -589,7 +592,6 @@ rb_vm_bugreport(void) } #if HAVE_BACKTRACE -#include <execinfo.h> #define MAX_NATIVE_TRACE 1024 { static void *trace[MAX_NATIVE_TRACE]; |
