diff --git a/cores/esp8266/IPAddress.h b/cores/esp8266/IPAddress.h index 7d2a95189..e17125f8a 100644 --- a/cores/esp8266/IPAddress.h +++ b/cores/esp8266/IPAddress.h @@ -41,7 +41,7 @@ #else // lwIP-v2+ #define CONST const #if !LWIP_IPV6 -#define ip_addr ipv4_addr +struct ip_addr: ipv4_addr { }; #endif // !LWIP_IPV6 #endif // lwIP-v2+ @@ -208,6 +208,4 @@ class IPAddress: public Printable { extern CONST IPAddress INADDR_ANY; extern const IPAddress INADDR_NONE; -#include // bring interface iterator - #endif diff --git a/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino b/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino index 45627bdb1..2025246f3 100644 --- a/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino +++ b/libraries/ESP8266WiFi/examples/EarlyDisableWiFi/EarlyDisableWiFi.ino @@ -1,5 +1,6 @@ #include +#include #ifndef STASSID #define STASSID "your-ssid" diff --git a/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino b/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino index 565710a83..eccb30ad1 100644 --- a/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino +++ b/libraries/ESP8266WiFi/examples/IPv6/IPv6.ino @@ -19,6 +19,7 @@ #include #include #include +#include #include #ifndef STASSID