Browse Source

[lwIP] use timeval in libc when minilibc is used

Bernard Xiong 7 years ago
parent
commit
6cdaa43747
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/net/lwip-1.4.1/src/arch/include/arch/cc.h

+ 1 - 1
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 <sys/time.h>
 #define LWIP_TIMEVAL_PRIVATE	   0
 #else