diff --git a/sys/dev/usb/usb.h b/sys/dev/usb/usb.h index 28695a32bca..24a5955b255 100644 --- a/sys/dev/usb/usb.h +++ b/sys/dev/usb/usb.h @@ -48,9 +48,11 @@ #if defined(__FreeBSD__) #include +#if defined(KERNEL) MALLOC_DECLARE(M_USB); MALLOC_DECLARE(M_USBDEV); #endif +#endif #define USB_MAX_DEVICES 128 #define USB_START_ADDR 0