From: David Brownell Date: Wed, 2 Dec 2009 23:24:14 +0000 (-0800) Subject: stubs: buildfix X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=a79b76d893ca5c3b8144b2098c88f516052d72fe;p=fw%2Fopenocd stubs: buildfix The new stubs for httpd and ioutil gave errors like: ioutil_stubs.c: In function ‘ioutil_init’: ioutil_stubs.c:27: error: implicit declaration of function ‘LOG_DEBUG’ ioutil_stubs.c:28: error: ‘ERROR_OK’ undeclared (first use in this function) ioutil_stubs.c:28: error: (Each undeclared identifier is reported only once ioutil_stubs.c:28: error: for each function it appears in.) Fix. Signed-off-by: David Brownell --- diff --git a/src/helper/ioutil_stubs.c b/src/helper/ioutil_stubs.c index 1171a6f13..3cd9f970e 100644 --- a/src/helper/ioutil_stubs.c +++ b/src/helper/ioutil_stubs.c @@ -21,6 +21,7 @@ #include #endif #include "ioutil.h" +#include "log.h" int ioutil_init(struct command_context *cmd_ctx) { diff --git a/src/server/httpd_stubs.c b/src/server/httpd_stubs.c index 0a63362c6..6c289afa9 100644 --- a/src/server/httpd_stubs.c +++ b/src/server/httpd_stubs.c @@ -21,6 +21,7 @@ #include #endif #include "httpd.h" +#include "log.h" int httpd_start(struct command_context *cmd_ctx) {