Build fix. Add howmany() and nitems() macros to bootloader kernel shim.

This commit is contained in:
Hans Petter Selasky 2016-04-26 15:41:31 +00:00
parent 55e0987aea
commit cc165fbf19

View File

@ -35,6 +35,8 @@
#include <sys/queue.h>
#include <sys/errno.h>
#define howmany(x, y) (((x)+((y)-1))/(y))
#define nitems(x) (sizeof((x)) / sizeof((x)[0]))
#define isalpha(x) (((x) >= 'a' && (x) <= 'z') || ((x) >= 'A' && (x) <= 'Z'))
#define isdigit(x) ((x) >= '0' && (x) <= '9')
#define panic(...) do { printf("USB PANIC: " __VA_ARGS__); while (1) ; } while (0)