From fdf7b4586fe91756b9a8b6ed1bf5d9b37c1aab6d Mon Sep 17 00:00:00 2001 From: akr Date: Sat, 26 Oct 2013 03:04:27 +0000 Subject: * addr2line.c: Include ELF header after system headers (especially sys/types.h) to avoid compilation failure, "usr/include/sh3/elf_machdep.h:4:2: error: #error Define _BYTE_ORDER!", on NetBSD/sh3 (dreamcast, hpcsh, landisk, mmeye). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- addr2line.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'addr2line.c') diff --git a/addr2line.c b/addr2line.c index f89a9d24fe..f936694724 100644 --- a/addr2line.c +++ b/addr2line.c @@ -17,11 +17,6 @@ #ifdef USE_ELF -#ifdef __OpenBSD__ -#include -#else -#include -#endif #include #include #include @@ -33,6 +28,12 @@ #include #include +#ifdef __OpenBSD__ +#include +#else +#include +#endif + /* Make alloca work the best possible way. */ #ifdef __GNUC__ # ifndef atarist -- cgit v1.2.3