From: Matthias Fuchs Date: Wed, 24 Sep 2008 08:29:37 +0000 (+0200) Subject: api: Fix building with CONFIG_API X-Git-Tag: v2008.10-rc3~10 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3d0ea3110f3431b6c2aee882784f39f97b20bce9;p=u-boot 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 --- 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