kopia lustrzana https://github.com/espressif/esp-idf
Merge branch 'lwip/if_indextoname_compolation_fix' into 'master'
fix(newlib): Fixed compilation error referencing undefined POSIX interface API Closes IDFGH-12575 See merge request espressif/esp-idf!30561pull/13854/head
commit
e2f6920c4f
|
@ -102,6 +102,10 @@ if(CONFIG_LWIP_ENABLE)
|
||||||
"port/sockets_ext.c"
|
"port/sockets_ext.c"
|
||||||
"port/freertos/sys_arch.c")
|
"port/freertos/sys_arch.c")
|
||||||
|
|
||||||
|
if(CONFIG_LWIP_NETIF_API)
|
||||||
|
list(APPEND srcs "port/if_index.c")
|
||||||
|
endif()
|
||||||
|
|
||||||
if(CONFIG_LWIP_PPP_SUPPORT)
|
if(CONFIG_LWIP_PPP_SUPPORT)
|
||||||
list(APPEND srcs
|
list(APPEND srcs
|
||||||
"lwip/src/netif/ppp/auth.c"
|
"lwip/src/netif/ppp/auth.c"
|
||||||
|
|
|
@ -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);
|
||||||
|
}
|
Ładowanie…
Reference in New Issue