mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 03:16:18 +00:00
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:
parent
f5c37c8cbb
commit
8b6bb1a503
@ -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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user