Skip to content

Commit 5db32cc

Browse files
committed
fix(asio): Make asio enable if_nametoindex to fix linking
1 parent 9bdd429 commit 5db32cc

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

components/asio/Kconfig

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,15 @@
11
menu "ESP-ASIO"
22
visible if LWIP_IPV6
33

4+
config ASIO_IS_ENABLED
5+
# Invisible option that is enabled if ASIO is added to the IDF components.
6+
# This is used to "select" LWIP_NETIF_API option
7+
# which enables if_indextoname() and if_nametoindex() functions
8+
# (these are optionally used in asio)
9+
bool
10+
default "y"
11+
select LWIP_NETIF_API
12+
413
config ASIO_SSL_SUPPORT
514
bool "Enable SSL/TLS support of ASIO"
615
default n

0 commit comments

Comments
 (0)