mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 16:37:52 +01:00
[code-quality] fix clang-tidy socket (#7285)
This commit is contained in:
parent
30414667d0
commit
3cbdf63f56
@ -1,4 +1,5 @@
|
||||
#include "socket.h"
|
||||
#if defined(USE_SOCKET_IMPL_LWIP_TCP) || defined(USE_SOCKET_IMPL_LWIP_SOCKETS) || defined(USE_SOCKET_IMPL_BSD_SOCKETS)
|
||||
#include <cerrno>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
@ -74,3 +75,4 @@ socklen_t set_sockaddr_any(struct sockaddr *addr, socklen_t addrlen, uint16_t po
|
||||
}
|
||||
} // namespace socket
|
||||
} // namespace esphome
|
||||
#endif
|
||||
|
@ -5,6 +5,7 @@
|
||||
#include "esphome/core/optional.h"
|
||||
#include "headers.h"
|
||||
|
||||
#if defined(USE_SOCKET_IMPL_LWIP_TCP) || defined(USE_SOCKET_IMPL_LWIP_SOCKETS) || defined(USE_SOCKET_IMPL_BSD_SOCKETS)
|
||||
namespace esphome {
|
||||
namespace socket {
|
||||
|
||||
@ -57,3 +58,4 @@ socklen_t set_sockaddr_any(struct sockaddr *addr, socklen_t addrlen, uint16_t po
|
||||
|
||||
} // namespace socket
|
||||
} // namespace esphome
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user