IF_NAMESIZE: define it only if it's not defined before by system headers

This commit is contained in:
Joan Lledó 2019-07-09 21:54:22 +02:00 committed by Simon Goldschmidt
parent 5465fdfd69
commit 3546a0a4a0

View File

@ -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);