From f04b4b3f406d33cd4fe10254a10ffd859f382469 Mon Sep 17 00:00:00 2001 From: "J. Nick Koston" Date: Tue, 27 May 2025 15:13:44 -0500 Subject: [PATCH] cleanup --- esphome/core/application.cpp | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/esphome/core/application.cpp b/esphome/core/application.cpp index 818cb25f8c..87b4f2eb97 100644 --- a/esphome/core/application.cpp +++ b/esphome/core/application.cpp @@ -9,23 +9,19 @@ #ifdef USE_SOCKET_SELECT_SUPPORT #include + +#ifdef USE_SOCKET_IMPL_LWIP_SOCKETS +// LWIP sockets implementation +#include +#elif defined(USE_SOCKET_IMPL_BSD_SOCKETS) +// BSD sockets implementation #ifdef USE_ESP32 -// ESP32 with BSD sockets actually uses lwIP underneath -#ifdef USE_SOCKET_IMPL_BSD_SOCKETS +// ESP32 "BSD sockets" are actually LWIP under the hood #include #else +// True BSD sockets (e.g., host platform) #include #endif -#elif defined(USE_ESP8266) -#include -#include -extern "C" { -#include -} -#elif defined(USE_SOCKET_IMPL_LWIP_SOCKETS) -#include -#else -#include #endif #endif