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>
This commit is contained in:
parent
08184b362e
commit
5644f71428
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue