Skip to contentSkip to conversation

api: Fix building with CONFIG_API

PATCH New Matthias Fuchs 2 participants 2 messages Sep 24, 2008 – Oct 14, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 api: Fix building with CONFIG_API

This patch fixes building with CONFIG_API and COFNIG_USB_STORAGE.

USB_MAX_STOR_DEV is defined in include/usb.h, but
needed in api/api_storage.c.

---
 api/api_storage.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
api/api_storage.c +4 -0
index 74391a5..5642dd3 100644
@@ -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
 
Signature · 1 line
1.5.3
#1 lore raw

PATCH 1/1 api: Fix building with CONFIG_API

Dear Matthias Fuchs,

Quoted 9 lines · In message <[email protected]> you wrote:

This patch fixes building with CONFIG_API and COFNIG_USB_STORAGE.

USB_MAX_STOR_DEV is defined in include/usb.h, but
needed in api/api_storage.c.

---
 api/api_storage.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Applied, thanks.

Best regards,

Wolfgang Denk

Signature · 4 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"It's like deja vu all over again."                      - Yogi Berra