Skip to content

Commit 175ae6b

Browse files
committed
restructure - Fixed include bug in features/unsupported/net/lwip
time.h brings in struct timeval lwip defines custom struct timeval resolved through disabling lwip's struct timeval
1 parent bf643bc commit 175ae6b

File tree

2 files changed

+2
-1
lines changed
  • features/unsupported/net/lwip

2 files changed

+2
-1
lines changed

features/unsupported/net/lwip/lwip-sys/arch/cc.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#define __CC_H__
3434

3535
#include <stdint.h>
36+
#include <sys/time.h>
3637

3738
/* Types based on stdint.h */
3839
typedef uint8_t u8_t;

features/unsupported/net/lwip/lwip/include/lwip/sockets.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ typedef struct ip_mreq {
304304
/** LWIP_TIMEVAL_PRIVATE: if you want to use the struct timeval provided
305305
* by your system, set this to 0 and include <sys/time.h> in cc.h */
306306
#ifndef LWIP_TIMEVAL_PRIVATE
307-
#define LWIP_TIMEVAL_PRIVATE 1
307+
#define LWIP_TIMEVAL_PRIVATE 0
308308
#endif
309309

310310
#if LWIP_TIMEVAL_PRIVATE

0 commit comments

Comments
 (0)