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:
Nick Withers
2015-12-07 16:31:00 +01:00
committed by Corinna Vinschen
parent 08184b362e
commit 5644f71428
3 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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 */