From 8b6bb1a503315851bff298f44628850dc3df85d1 Mon Sep 17 00:00:00 2001 From: Axel Lin Date: Sun, 19 Nov 2017 13:58:24 +0800 Subject: [PATCH] apps/httpd: Fix build error when LWIP_HTTPD_TIMING=1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Include lwip/sys.h to fix below build error: ../../../../lwip/src/apps/httpd/httpd.c:470:23: error: implicit declaration of function ‘sys_now’ [-Werror=implicit-function-declaration] u32_t ms_needed = sys_now() - hs->time_started; ^~~~~~~ Signed-off-by: Axel Lin --- src/apps/httpd/httpd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/apps/httpd/httpd.c b/src/apps/httpd/httpd.c index f94c1fbf..2a58f71f 100644 --- a/src/apps/httpd/httpd.c +++ b/src/apps/httpd/httpd.c @@ -104,6 +104,9 @@ #ifdef LWIP_HOOK_FILENAME #include LWIP_HOOK_FILENAME #endif +#if LWIP_HTTPD_TIMING +#include "lwip/sys.h" +#endif /* LWIP_HTTPD_TIMING */ #include /* memset */ #include /* atoi */