Make sure __LITTLE_ENDIAN/__BIG_ENDIAN are defined in libunwind-frame.c
authorJoel Brobecker <brobecker@gnat.com>
Thu, 13 Jan 2011 16:23:11 +0000 (16:23 +0000)
committerJoel Brobecker <brobecker@gnat.com>
Thu, 13 Jan 2011 16:23:11 +0000 (16:23 +0000)
These macros do not seem to exist on ia64-hpux.

gdb/ChangeLog:

        * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
        not already defined.

gdb/ChangeLog
gdb/libunwind-frame.c

index e52214d7f4d595db1adac31990f2caa216e72044..b7fe880fcedcd42d63b9bf5e3c8b4fe50e6e24bb 100644 (file)
@@ -1,3 +1,8 @@
+2011-01-13  Joel Brobecker  <brobecker@adacore.com>
+
+       * libunwind-frame.c (__LITTLE_ENDIAN, __BIG_ENDIAN): Define if
+       not already defined.
+
 2011-01-13  Joel Brobecker  <brobecker@adacore.com>
 
        * ia64-tdep.c (ia64_struct_type_p): New function.
index 2cdb1ab1f17eab8949e56efe99e5b0fa208371f7..53c42d935b76110d98d0458f87e9f99fe963aa66 100644 (file)
 
 #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;
 
This page took 0.026335 seconds and 4 git commands to generate.