Skip to content

Commit 4f86a68

Browse files
authored
fix espconn and err_t (#5392)
1 parent c677714 commit 4f86a68

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Diff for: tools/sdk/include/espconn.h

+6-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,12 @@
2929
extern "C" {
3030
#endif
3131

32-
typedef sint8 err_t;
32+
//typedef sint8 err_t;
33+
// err_t has been redefined by espressif,
34+
// use autogenerated <lwip-err-t.h> to define LWIP_ERR_T,
35+
// this is compatible with both versions of lwIP.
36+
#include <../../lwip2/include/lwip-err-t.h>
37+
#include <lwip/err.h>
3338

3439
typedef void *espconn_handle;
3540
typedef void (* espconn_connect_callback)(void *arg);

0 commit comments

Comments
 (0)