* 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
This commit is contained in:
akr 2013-10-26 03:04:27 +00:00
Родитель 286d567bbf
Коммит fdf7b4586f
2 изменённых файлов: 13 добавлений и 5 удалений

Просмотреть файл

@ -1,3 +1,10 @@
Sat Oct 26 11:59:13 2013 Tanaka Akira <akr@fsij.org>
* 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 <ko1@atdot.net>
* gc.c: tuning parameters.

Просмотреть файл

@ -17,11 +17,6 @@
#ifdef USE_ELF
#ifdef __OpenBSD__
#include <elf_abi.h>
#else
#include <elf.h>
#endif
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
@ -33,6 +28,12 @@
#include <sys/stat.h>
#include <unistd.h>
#ifdef __OpenBSD__
#include <elf_abi.h>
#else
#include <elf.h>
#endif
/* Make alloca work the best possible way. */
#ifdef __GNUC__
# ifndef atarist