Build fix. Add howmany() and nitems() macros to bootloader kernel shim.
This commit is contained in:
parent
55e0987aea
commit
cc165fbf19
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user