diff --git a/ChangeLog b/ChangeLog index 70e0d11f06..3428f49d4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Sat Oct 26 11:59:13 2013 Tanaka Akira + + * 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). + Sat Oct 26 11:35:22 2013 Koichi Sasada * gc.c: tuning parameters. 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