diff options
author | Joel Brobecker <brobecker@gnat.com> | 2011-01-13 16:23:11 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2011-01-13 16:23:11 +0000 |
commit | 3e5e6e2ab5b4552ea14e7e8e461c0f38f23db377 (patch) | |
tree | 1b5995c02f32031d5be9afeef124474b7b7909ff /gdb/libunwind-frame.c | |
parent | 825d6d8a6983bce3664db1058afb19335db795cc (diff) | |
download | gdb-3e5e6e2ab5b4552ea14e7e8e461c0f38f23db377.zip gdb-3e5e6e2ab5b4552ea14e7e8e461c0f38f23db377.tar.gz gdb-3e5e6e2ab5b4552ea14e7e8e461c0f38f23db377.tar.bz2 |
Make sure __LITTLE_ENDIAN/__BIG_ENDIAN are defined in libunwind-frame.c
These macros do not seem to exist on ia64-hpux.
gdb/ChangeLog:
* libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
not already defined.
Diffstat (limited to 'gdb/libunwind-frame.c')
-rw-r--r-- | gdb/libunwind-frame.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/libunwind-frame.c b/gdb/libunwind-frame.c index 2cdb1ab..53c42d9 100644 --- a/gdb/libunwind-frame.c +++ b/gdb/libunwind-frame.c @@ -41,6 +41,16 @@ #include "complaints.h" +/* The following two macros are normally defined in <endian.h>. + But systems such as ia64-hpux do not provide such header, so + we just define them here if not already defined. */ +#ifndef __LITTLE_ENDIAN +#define __LITTLE_ENDIAN 1234 +#endif +#ifndef __BIG_ENDIAN +#define __BIG_ENDIAN 4321 +#endif + static int libunwind_initialized; static struct gdbarch_data *libunwind_descr_handle; |