summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-08 12:23:10 (GMT)
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-07-08 12:23:10 (GMT)
commite33183acca3d11bbfae6f4551bca890cf7d4280a (patch)
treedb8366616c5e6f1ed8f20cdf2629a3bd059d9f1a /addr2line.c
parent29e497d231b91237ca4a1b6d6eaaf7ace869508e (diff)
* 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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/addr2line.c b/addr2line.c
index 71ebf03..219d1d4 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