mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
fix(lwip): Fixed compilation error referencing undefined POSIX interface API
Closes https://github.com/espressif/esp-idf/issues/13577
This commit is contained in:
parent
2381f35409
commit
ed9f17e2bc
@ -123,6 +123,10 @@ if(CONFIG_LWIP_PPP_SUPPORT)
|
|||||||
"lwip/src/netif/ppp/polarssl/md4.c"
|
"lwip/src/netif/ppp/polarssl/md4.c"
|
||||||
"lwip/src/netif/ppp/polarssl/md5.c"
|
"lwip/src/netif/ppp/polarssl/md5.c"
|
||||||
"lwip/src/netif/ppp/polarssl/sha1.c")
|
"lwip/src/netif/ppp/polarssl/sha1.c")
|
||||||
|
|
||||||
|
if(CONFIG_LWIP_NETIF_API)
|
||||||
|
list(APPEND srcs "port/if_index.c")
|
||||||
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(CONFIG_VFS_SUPPORT_IO)
|
if(CONFIG_VFS_SUPPORT_IO)
|
||||||
|
17
components/lwip/port/if_index.c
Normal file
17
components/lwip/port/if_index.c
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
/*
|
||||||
|
* SPDX-FileCopyrightText: 2023-2024 Espressif Systems (Shanghai) CO LTD
|
||||||
|
*
|
||||||
|
* SPDX-License-Identifier: Apache-2.0
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "lwip/if_api.h"
|
||||||
|
|
||||||
|
unsigned int if_nametoindex(const char *ifname)
|
||||||
|
{
|
||||||
|
return lwip_if_nametoindex(ifname);
|
||||||
|
}
|
||||||
|
|
||||||
|
char *if_indextoname(unsigned int ifindex, char *ifname)
|
||||||
|
{
|
||||||
|
return lwip_if_indextoname(ifindex, ifname);
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user