]> sourceware.org Git - newlib-cygwin.git/commitdiff
Add definitions for NBBY to arm and rtems targets
authorNick Withers <nick.withers@anu.edu.au>
Mon, 7 Dec 2015 15:31:00 +0000 (16:31 +0100)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 7 Dec 2015 15:31:00 +0000 (16:31 +0100)
* 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>
newlib/ChangeLog
newlib/libc/sys/arm/sys/param.h
newlib/libc/sys/rtems/include/sys/param.h

index e8d7ee7bb1cc5a4dfd660a48987e989d3826f42e..1aff1c606d98ca3be27f1f2770a5ff6978411a3f 100644 (file)
@@ -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
index b358734a341228b2e8a2235cf9f34c38908cd680..5b9464cca2a4fff28f83c0dbcb8fbbf619350853 100644 (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
index f1e598c88cde328e75b4310fb647b98513a50305..aa04352204c43d774f7abfedea0d022abcb81c42 100644 (file)
 
 #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 */
This page took 0.059084 seconds and 5 git commands to generate.