summaryrefslogtreecommitdiffstats
path: root/newlib/libc/include/sys/param.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/include/sys/param.h')
-rw-r--r--newlib/libc/include/sys/param.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/newlib/libc/include/sys/param.h b/newlib/libc/include/sys/param.h
index ef203d3ec..9a6f115a6 100644
--- a/newlib/libc/include/sys/param.h
+++ b/newlib/libc/include/sys/param.h
@@ -10,6 +10,9 @@
#include <machine/endian.h>
#include <machine/param.h>
+#ifndef NBBY
+# define NBBY 8 /* number of bits in a byte */
+#endif
#ifndef HZ
# define HZ (60)
#endif
@@ -25,4 +28,8 @@
#define MAX(a,b) ((a) > (b) ? (a) : (b))
#define MIN(a,b) ((a) < (b) ? (a) : (b))
+#ifndef howmany
+#define howmany(x, y) (((x)+((y)-1))/(y))
+#endif
+
#endif