Author: hselasky Date: Tue Apr 26 15:41:31 2016 New Revision: 298650 URL: https://svnweb.freebsd.org/changeset/base/298650
Log: Build fix. Add howmany() and nitems() macros to bootloader kernel shim. Modified: head/sys/boot/kshim/bsd_kernel.h Modified: head/sys/boot/kshim/bsd_kernel.h ============================================================================== --- head/sys/boot/kshim/bsd_kernel.h Tue Apr 26 15:38:17 2016 (r298649) +++ head/sys/boot/kshim/bsd_kernel.h Tue Apr 26 15:41:31 2016 (r298650) @@ -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) _______________________________________________ svn-src-head@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"