-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(lwip): Fixed compilation error referencing undefined POSIX interf…
…ace API Closes #13577
- Loading branch information
1 parent
6a4396c
commit 6567f0b
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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); | ||
} |