diff --git a/src/include/esp-idf/bindings.h b/src/include/esp-idf/bindings.h index 69ee588074..3d310e507b 100644 --- a/src/include/esp-idf/bindings.h +++ b/src/include/esp-idf/bindings.h @@ -98,9 +98,9 @@ #include "esp_event.h" #endif +#include "esp_netif_net_stack.h" #ifdef ESP_IDF_COMP_ESP_NETIF_ENABLED #include "esp_netif.h" -#include "esp_netif_net_stack.h" #if ESP_IDF_VERSION_MAJOR > 4 && defined(CONFIG_ESP_NETIF_TCPIP_LWIP) && defined(CONFIG_ESP_NETIF_BRIDGE_EN) #include "esp_netif_br_glue.h" @@ -212,12 +212,12 @@ #endif #endif +#include "lwip/esp_netif_net_stack.h" #ifdef ESP_IDF_COMP_LWIP_ENABLED #include "lwip/dns.h" #include "lwip/lwip_napt.h" #include "lwip/netdb.h" #include "lwip/sockets.h" -#include "lwip/esp_netif_net_stack.h" #include "esp_sntp.h" #include "ping/ping_sock.h" #if ESP_IDF_VERSION_MAJOR > 5 || ESP_IDF_VERSION_MAJOR == 5 && ESP_IDF_VERSION_MINOR >= 1