This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
newlib no-longer builds on ARM
- From: Richard Earnshaw <rearnsha at arm dot com>
- To: newlib at sources dot redhat dot com
- Cc: Richard dot Earnshaw at arm dot com
- Date: Fri, 21 Jun 2002 16:03:22 +0100
- Subject: newlib no-longer builds on ARM
- Organization: ARM Ltd.
- Reply-to: Richard dot Earnshaw at arm dot com
The recent hash additions have broken builds for the ARM. The following
patch is needed to fix this:
R.
<date> Richard Earnshaw (rearnsha@arm.com)
* libc/sys/arm/sys/param.h (BIG_ENDIAN, LITTLE_ENDIAN): Define.
(BYTE_ORDER): Define as appropriate for the target.
Index: param.h
===================================================================
RCS file: /cvs/src/src/newlib/libc/sys/arm/sys/param.h,v
retrieving revision 1.1.1.1
diff -p -r1.1.1.1 param.h
*** param.h 17 Feb 2000 19:39:49 -0000 1.1.1.1
--- param.h 21 Jun 2002 15:02:57 -0000
***************
*** 7,10 ****
--- 7,19 ----
# define NOFILE (60)
# define PATHSIZE (1024)
+ #define BIG_ENDIAN 4321
+ #define LITTLE_ENDIAN 1234
+
+ #ifdef __ARMEB__
+ #define BYTE_ORDER BIG_ENDIAN
+ #else
+ #define BYTE_ORDER LITTLE_ENDIAN
+ #endif
+
#endif