From ba0434bed6f6b3585438624a25b1c692e635a212 Mon Sep 17 00:00:00 2001 From: Peter Date: Sun, 10 Nov 2019 08:49:13 +1000 Subject: [PATCH] Add `ipv4_addr_t` for espconn/LwIP1.4 compat `espconnn.h` references ipv4_addr_t, so it seems appropriate it be defined here also. --- cores/esp8266/IPAddress.h | 1 + 1 file changed, 1 insertion(+) diff --git a/cores/esp8266/IPAddress.h b/cores/esp8266/IPAddress.h index bf5ef1010d..cdd4b2499f 100644 --- a/cores/esp8266/IPAddress.h +++ b/cores/esp8266/IPAddress.h @@ -32,6 +32,7 @@ #define LWIP_IPV6_NUM_ADDRESSES 0 #define ip_2_ip4(x) (x) #define ipv4_addr ip_addr +#define ipv4_addr_t ip_addr_t #define IP_IS_V4_VAL(x) (1) #define IP_SET_TYPE_VAL(x,y) do { (void)0; } while (0) #define IP_ANY_TYPE (&ip_addr_any)