From 6cdaa437473908b9820597cb2dc7db235f9408a1 Mon Sep 17 00:00:00 2001 From: Bernard Xiong Date: Wed, 1 Nov 2017 13:37:40 +0800 Subject: [PATCH] [lwIP] use timeval in libc when minilibc is used --- components/net/lwip-1.4.1/src/arch/include/arch/cc.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/net/lwip-1.4.1/src/arch/include/arch/cc.h b/components/net/lwip-1.4.1/src/arch/include/arch/cc.h index 02b2f43907..62aa6c8ab4 100644 --- a/components/net/lwip-1.4.1/src/arch/include/arch/cc.h +++ b/components/net/lwip-1.4.1/src/arch/include/arch/cc.h @@ -69,7 +69,7 @@ typedef rt_uint32_t mem_ptr_t; #define LWIP_PROVIDE_ERRNO #endif -#ifdef RT_USING_LIBC +#if defined(RT_USING_LIBC) || defined(RT_USING_MINILIBC) #include #define LWIP_TIMEVAL_PRIVATE 0 #else