Merge pull request #1 from richchurcher/fix-timeval

Fix timeval redefinition
This commit is contained in:
Zachary Tong 2017-01-10 06:32:54 -05:00 committed by GitHub
commit a83d26d251
2 changed files with 2 additions and 1 deletions

View file

@ -33,6 +33,7 @@
#define __CC_H__
#include "cpu.h"
#include <sys/time.h>
typedef unsigned char u8_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
* by your system, set this to 0 and include <sys/time.h> in cc.h */
#ifndef LWIP_TIMEVAL_PRIVATE
#define LWIP_TIMEVAL_PRIVATE 1
#define LWIP_TIMEVAL_PRIVATE 0
#endif
#if LWIP_TIMEVAL_PRIVATE