diff --git a/tools/sdk/include/espconn.h b/tools/sdk/include/espconn.h index 31bbf6a9b1..92df2fe38d 100644 --- a/tools/sdk/include/espconn.h +++ b/tools/sdk/include/espconn.h @@ -29,7 +29,12 @@ extern "C" { #endif -typedef sint8 err_t; +//typedef sint8 err_t; +// err_t has been redefined by espressif, +// use autogenerated to define LWIP_ERR_T, +// this is compatible with both versions of lwIP. +#include <../../lwip2/include/lwip-err-t.h> +#include typedef void *espconn_handle; typedef void (* espconn_connect_callback)(void *arg);