From 22b2687a25163f9998dfed9912528d1542867dfe Mon Sep 17 00:00:00 2001 From: "Dirk O. Kaar" <19971886+dok-net@users.noreply.github.com> Date: Thu, 28 Nov 2019 19:31:57 +0100 Subject: [PATCH] Conflict with pre-included Arduino.h (the indirect includes thereof) (#6853) * Conflict with pre-included Arduino.h (the indirect includes thereof) resolved. * Include both time.h and sys/time.h --- cores/esp8266/sntp-lwip2.cpp | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/cores/esp8266/sntp-lwip2.cpp b/cores/esp8266/sntp-lwip2.cpp index 063cc5be2..b046a1990 100644 --- a/cores/esp8266/sntp-lwip2.cpp +++ b/cores/esp8266/sntp-lwip2.cpp @@ -38,6 +38,7 @@ */ #include +#include #include #include #include @@ -133,30 +134,8 @@ static const int year_lengths[2] = { 365, 366 } ; -struct tm -{ - int tm_sec; - int tm_min; - int tm_hour; - int tm_mday; - int tm_mon; - int tm_year; - int tm_wday; - int tm_yday; - int tm_isdst; -}; struct tm res_buf; -typedef struct __tzrule_struct -{ - char ch; - int m; - int n; - int d; - int s; - time_t change; - int offset; -} __tzrule_type; __tzrule_type sntp__tzrule[2]; struct tm *