diff --git a/include/tdep-ia64.h b/include/tdep-ia64.h index baf2c970..348c7569 100644 --- a/include/tdep-ia64.h +++ b/include/tdep-ia64.h @@ -29,7 +29,17 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /* Target-dependent definitions that are internal to libunwind but need to be shared with target-independent code. */ -#include +#ifdef HAVE_ENDIAN_H +# include +#else +# define __LITTLE_ENDIAN 1234 +# define __BIG_ENDIAN 4321 +# if defined(__hpux) +# define __BYTE_ORDER __LITTLE_ENDIAN +# else +# error Host has unknown byte-order. +# endif +#endif #include #include "elf64.h"