diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-12 02:35:07 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2011-01-12 02:35:07 +0000 |
commit | 4acff773ae8abaafbac90c4f8d9f3545688bfd8d (patch) | |
tree | 115ec8378abe6041ba1121f15aaf19b8c4913c98 | |
parent | 6bcf7098384e96bc756356ee08bc0dd92584244f (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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | addr2line.c | 4 |
2 files changed, 9 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Jan 12 11:33:46 2011 NARUSE, Yui <naruse@ruby-lang.org> + + * addr2line.c: OpenBSD uses the elf_abi.h header file instead of the + elf.h header file. patched by Jeremy Evans [ruby-core:34384] + Wed Jan 12 03:59:36 2011 NARUSE, Yui <naruse@ruby-lang.org> * test/webrick/test_cgi.rb: Removes usage of deprecated 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> |