This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

newlib no-longer builds on ARM


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]