diff --git a/components/lwip/port/esp32/include/sys/socket.h b/components/lwip/port/esp32/include/sys/socket.h index 0ed9baf3d9..5ea4db4ab8 100644 --- a/components/lwip/port/esp32/include/sys/socket.h +++ b/components/lwip/port/esp32/include/sys/socket.h @@ -31,3 +31,8 @@ */ #include "lwip/sockets.h" +/* + SOMAXCONN is expected to be found in this header too, + while for ESP32 port is defined in net/if.h +*/ +#include