summaryrefslogtreecommitdiff
path: root/addr2line.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-12 02:35:07 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2011-01-12 02:35:07 +0000
commit4acff773ae8abaafbac90c4f8d9f3545688bfd8d (patch)
tree115ec8378abe6041ba1121f15aaf19b8c4913c98 /addr2line.c
parent6bcf7098384e96bc756356ee08bc0dd92584244f (diff)
* addr2line.c: OpenBSD uses the elf_abi.h header file instead of the
elf.h header file. patched by Jeremy Evans [ruby-core:34384] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30517 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'addr2line.c')
-rw-r--r--addr2line.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/addr2line.c b/addr2line.c
index f1f8b4d8ba..605c6f60d3 100644
--- a/addr2line.c
+++ b/addr2line.c
@@ -15,7 +15,11 @@
#ifdef __ELF__
+#ifdef __OpenBSD__
+#include <elf_abi.h>
+#else
#include <elf.h>
+#endif
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>