From e1660a180610c46a2185f452df0e1de03f4671c1 Mon Sep 17 00:00:00 2001 From: gabsuren Date: Tue, 21 Jun 2022 20:39:46 +0400 Subject: [PATCH] protocol_examples_common: Updated to explicitely use esp-eth dependency if needed * Original commit: espressif/esp-idf@5e19b9c9518ae253d82400ab24b86af8af832425 --- common_components/protocol_examples_common/CMakeLists.txt | 2 +- .../protocol_examples_common/include/protocol_examples_common.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/common_components/protocol_examples_common/CMakeLists.txt b/common_components/protocol_examples_common/CMakeLists.txt index 5f9317e17..5f903a75d 100644 --- a/common_components/protocol_examples_common/CMakeLists.txt +++ b/common_components/protocol_examples_common/CMakeLists.txt @@ -1,4 +1,4 @@ idf_component_register(SRCS "connect.c" "stdin_out.c" "addr_from_stdin.c" INCLUDE_DIRS "include" - PRIV_REQUIRES esp_netif driver + PRIV_REQUIRES esp_netif driver esp_eth ) diff --git a/common_components/protocol_examples_common/include/protocol_examples_common.h b/common_components/protocol_examples_common/include/protocol_examples_common.h index 7afc78a74..d43e94e0d 100644 --- a/common_components/protocol_examples_common/include/protocol_examples_common.h +++ b/common_components/protocol_examples_common/include/protocol_examples_common.h @@ -15,6 +15,7 @@ extern "C" { #include "esp_err.h" #include "esp_netif.h" +#include "esp_eth.h" #ifdef CONFIG_EXAMPLE_CONNECT_ETHERNET #define EXAMPLE_INTERFACE get_example_netif()