diff options
author | Nick Withers <nick.withers@anu.edu.au> | 2015-12-07 16:31:00 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2015-12-07 16:31:00 +0100 |
commit | 5644f71428ba571b733db255e31dc39aba13ad8a (patch) | |
tree | 28917929ce57c1618f9570e2400fa6717c302a53 | |
parent | 08184b362e8eeb2af0d03d169b852769d1d66f53 (diff) | |
download | newlib-5644f71428ba571b733db255e31dc39aba13ad8a.zip newlib-5644f71428ba571b733db255e31dc39aba13ad8a.tar.gz newlib-5644f71428ba571b733db255e31dc39aba13ad8a.tar.bz2 |
Add definitions for NBBY to arm and rtems targets
* libc/sys/arm/sys/param.h (NBBY): Define if not already defined.
* libc/sys/rtems/include/sys/param.h (NBBY): Define.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/sys/arm/sys/param.h | 3 | ||||
-rw-r--r-- | newlib/libc/sys/rtems/include/sys/param.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index e8d7ee7..1aff1c6 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2015-12-07 Nick Withers <nick.withers@anu.edu.au> + + * libc/sys/arm/sys/param.h (NBBY): Define if not already defined. + * libc/sys/rtems/include/sys/param.h (NBBY): Define. + 2015-12-07 Corinna Vinschen <corinna@vinschen.de> * libc/include/sys/types.h: Move definitions of NBBY and howmany to diff --git a/newlib/libc/sys/arm/sys/param.h b/newlib/libc/sys/arm/sys/param.h index b358734..5b9464c 100644 --- a/newlib/libc/sys/arm/sys/param.h +++ b/newlib/libc/sys/arm/sys/param.h @@ -6,6 +6,9 @@ #include <machine/param.h> #include <machine/endian.h> +#ifndef NBBY +# define NBBY 8 /* number of bits in a byte */ +#endif #ifndef HZ # define HZ (60) #endif diff --git a/newlib/libc/sys/rtems/include/sys/param.h b/newlib/libc/sys/rtems/include/sys/param.h index f1e598c..aa04352 100644 --- a/newlib/libc/sys/rtems/include/sys/param.h +++ b/newlib/libc/sys/rtems/include/sys/param.h @@ -109,6 +109,7 @@ #define NZERO 0 /* default "nice" */ +#define NBBY 8 /* number of bits in a byte */ #define NBPW sizeof(int) /* number of bytes per word (integer) */ #define CMASK 022 /* default file mask: S_IWGRP|S_IWOTH */ |