apps/httpd: Fix build error when LWIP_HTTPD_TIMING=1

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 <axel.lin@ingics.com>
This commit is contained in:
Axel Lin 2017-11-19 13:58:24 +08:00 committed by goldsimon
parent f5c37c8cbb
commit 8b6bb1a503

View File

@ -104,6 +104,9 @@
#ifdef LWIP_HOOK_FILENAME #ifdef LWIP_HOOK_FILENAME
#include LWIP_HOOK_FILENAME #include LWIP_HOOK_FILENAME
#endif #endif
#if LWIP_HTTPD_TIMING
#include "lwip/sys.h"
#endif /* LWIP_HTTPD_TIMING */
#include <string.h> /* memset */ #include <string.h> /* memset */
#include <stdlib.h> /* atoi */ #include <stdlib.h> /* atoi */