Patch from Ralf Corsepius <corsepiu@faw.uni-ulm.de>:

Here is a pure sh-rtems bug-fix patch.

  The defines to enable the network to host conversion macros in
  netinet/in.h were missing in sh/cpu.h
This commit is contained in:
Joel Sherrill
1998-07-23 20:04:55 +00:00
parent 613ab621df
commit 73452854c0

View File

@@ -248,6 +248,24 @@ extern "C" {
#define CPU_STRUCTURE_ALIGNMENT __attribute__ ((aligned(16)))
/*
* Define what is required to specify how the network to host conversion
* routines are handled.
*
* NOTE: SHes can be big or little endian, the default is big endian
*/
#define CPU_CPU_HAS_OWN_HOST_TO_NETWORK_ROUTINES FALSE
/* __LITTLE_ENDIAN__ is defined if -ml is given to gcc */
#if defined(__LITTLE_ENDIAN__)
#define CPU_BIG_ENDIAN FALSE
#define CPU_LITTLE_ENDIAN TRUE
#else
#define CPU_BIG_ENDIAN TRUE
#define CPU_LITTLE_ENDIAN FALSE
#endif
/*
* The following defines the number of bits actually used in the
* interrupt field of the task mode. How those bits map to the