From 3d0ea3110f3431b6c2aee882784f39f97b20bce9 Mon Sep 17 00:00:00 2001 From: Matthias Fuchs Date: Wed, 24 Sep 2008 10:29:37 +0200 Subject: [PATCH] api: Fix building with CONFIG_API This patch fixes building with CONFIG_API and CONFIG_USB_STORAGE. USB_MAX_STOR_DEV is defined in include/usb.h, but needed in api/api_storage.c. Signed-off-by: Matthias Fuchs --- api/api_storage.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/api/api_storage.c b/api/api_storage.c index 74391a59d0..5642dd33bc 100644 --- a/api/api_storage.c +++ b/api/api_storage.c @@ -30,6 +30,10 @@ #include #include +#if defined(CONFIG_CMD_USB) && defined(CONFIG_USB_STORAGE) +#include +#endif + #define DEBUG #undef DEBUG -- 2.39.5