mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-12-26 21:14:09 +00:00
IF_NAMESIZE: define it only if it's not defined before by system headers
This commit is contained in:
parent
5465fdfd69
commit
3546a0a4a0
@ -49,7 +49,9 @@
|
|||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef IF_NAMESIZE
|
||||||
#define IF_NAMESIZE NETIF_NAMESIZE
|
#define IF_NAMESIZE NETIF_NAMESIZE
|
||||||
|
#endif
|
||||||
|
|
||||||
char * lwip_if_indextoname(unsigned int ifindex, char *ifname);
|
char * lwip_if_indextoname(unsigned int ifindex, char *ifname);
|
||||||
unsigned int lwip_if_nametoindex(const char *ifname);
|
unsigned int lwip_if_nametoindex(const char *ifname);
|
||||||
|
Loading…
Reference in New Issue
Block a user