From 70187fa319d2dbeb4b47695dc8fdb752f82bcc1a Mon Sep 17 00:00:00 2001 From: Rich Churcher Date: Thu, 5 Jan 2017 18:09:36 +1300 Subject: [PATCH] Fix timeval redefinition --- .../common/network/lwip/lwip_v1.4.1/port/realtek/arch/cc.h | 1 + .../common/network/lwip/lwip_v1.4.1/src/include/lwip/sockets.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/component/common/network/lwip/lwip_v1.4.1/port/realtek/arch/cc.h b/component/common/network/lwip/lwip_v1.4.1/port/realtek/arch/cc.h index b381e22..8de0b16 100644 --- a/component/common/network/lwip/lwip_v1.4.1/port/realtek/arch/cc.h +++ b/component/common/network/lwip/lwip_v1.4.1/port/realtek/arch/cc.h @@ -33,6 +33,7 @@ #define __CC_H__ #include "cpu.h" +#include typedef unsigned char u8_t; typedef signed char s8_t; diff --git a/component/common/network/lwip/lwip_v1.4.1/src/include/lwip/sockets.h b/component/common/network/lwip/lwip_v1.4.1/src/include/lwip/sockets.h index 3ea32f1..804a032 100644 --- a/component/common/network/lwip/lwip_v1.4.1/src/include/lwip/sockets.h +++ b/component/common/network/lwip/lwip_v1.4.1/src/include/lwip/sockets.h @@ -306,7 +306,7 @@ typedef struct ip_mreq { /** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided * by your system, set this to 0 and include in cc.h */ #ifndef LWIP_TIMEVAL_PRIVATE -#define LWIP_TIMEVAL_PRIVATE 1 +#define LWIP_TIMEVAL_PRIVATE 0 #endif #if LWIP_TIMEVAL_PRIVATE