diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-08 12:23:10 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-07-08 12:23:10 +0000 |
commit | e33183acca3d11bbfae6f4551bca890cf7d4280a (patch) | |
tree | db8366616c5e6f1ed8f20cdf2629a3bd059d9f1a /addr2line.c | |
parent | 29e497d231b91237ca4a1b6d6eaaf7ace869508e (diff) | |
download | ruby-e33183acca3d11bbfae6f4551bca890cf7d4280a.tar.gz |
* addr2line.c: use USE_ELF instead of __ELF__ because Solaris
doesn't define it. USE_ELF is already provided by configure.
patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998]
* addr2line.h: ditto.
* vm_dump.c: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r-- | addr2line.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addr2line.c b/addr2line.c index 71ebf0365f..219d1d4b47 100644 --- a/addr2line.c +++ b/addr2line.c @@ -14,7 +14,7 @@ #include <stdio.h> #include <errno.h> -#ifdef __ELF__ +#ifdef USE_ELF #ifdef __OpenBSD__ #include <elf_abi.h> @@ -605,6 +605,6 @@ rb_dump_backtrace_with_lines(int num_traces, void **trace, char **syms) free(lines); } -#else /* defined(__ELF__) */ +#else /* defined(USE_ELF) */ #error not supported #endif |