Fix timeval redefinition

This commit is contained in:
Rich Churcher 2017-01-05 18:09:36 +13:00
parent 5afb0b17ba
commit 70187fa319
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@
#define __CC_H__ #define __CC_H__
#include "cpu.h" #include "cpu.h"
#include <sys/time.h>
typedef unsigned char u8_t; typedef unsigned char u8_t;
typedef signed char s8_t; typedef signed char s8_t;

View file

@ -306,7 +306,7 @@ typedef struct ip_mreq {
/** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided /** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided
* by your system, set this to 0 and include <sys/time.h> in cc.h */ * by your system, set this to 0 and include <sys/time.h> in cc.h */
#ifndef LWIP_TIMEVAL_PRIVATE #ifndef LWIP_TIMEVAL_PRIVATE
#define LWIP_TIMEVAL_PRIVATE 1 #define LWIP_TIMEVAL_PRIVATE 0
#endif #endif
#if LWIP_TIMEVAL_PRIVATE #if LWIP_TIMEVAL_PRIVATE