diff --git a/api/api_storage.c b/api/api_storage.c
index 74391a59d083108ed4c19b6b34dd1e095f82489a..5642dd33bc32c71265e1d470e767c214d821cf1d 100644
--- a/api/api_storage.c
+++ b/api/api_storage.c
@@ -30,6 +30,10 @@
 #include <common.h>
 #include <api_public.h>
 
+#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE)
+#include <usb.h>
+#endif
+
 #define DEBUG
 #undef DEBUG