mdns: Updated mDNS to explicitely use esp-eth dependency if needed

* Original commit: espressif/esp-idf@5e19b9c951
This commit is contained in:
gabsuren
2022-06-17 13:16:14 +04:00
parent ebf122bd36
commit 4868689111
3 changed files with 8 additions and 1 deletions

View File

@ -20,3 +20,7 @@ idf_component_register(
PRIV_INCLUDE_DIRS "private_include"
REQUIRES ${dependencies}
PRIV_REQUIRES ${private_dependencies})
if(CONFIG_ETH_ENABLED)
idf_component_optional_requires(PRIVATE esp_eth)
endif()

View File

@ -1,4 +1,4 @@
version: "1.0.2"
version: "1.0.3"
description: mDNS
dependencies:
idf:

View File

@ -17,6 +17,9 @@
#include "mdns_networking.h"
#include "esp_log.h"
#include "esp_random.h"
#if CONFIG_ETH_ENABLED
#include "esp_eth.h"
#endif
#ifdef MDNS_ENABLE_DEBUG
void mdns_debug_packet(const uint8_t * data, size_t len);