Fix time components on rp2040 (#4024)

This commit is contained in:
Jesse Hills 2022-11-14 13:29:41 +13:00
parent 10f590324b
commit 608be4e050
No known key found for this signature in database
GPG key ID: BEAAE804EFD8E83A
2 changed files with 6 additions and 0 deletions

View file

@ -10,6 +10,9 @@
#ifdef USE_ESP8266
#include "sntp.h"
#endif
#ifdef USE_RP2040
#include "lwip/apps/sntp.h"
#endif
// Yes, the server names are leaked, but that's fine.
#ifdef CLANG_TIDY

View file

@ -4,6 +4,9 @@
#ifdef USE_ESP8266
#include "sys/time.h"
#endif
#ifdef USE_RP2040
#include <sys/time.h>
#endif
#include <cerrno>
namespace esphome {