LibC: Add struct ifconf in net/if.h

This fixes building the scummvm port.
This commit is contained in:
Gunnar Beutner 2021-08-13 20:44:46 +02:00 committed by Andreas Kling
parent b2ec579e98
commit a1518e870d

View file

@ -46,6 +46,14 @@ struct ifreq {
#define ifr_hwaddr ifr_ifru.ifru_hwaddr // MAC address
};
struct ifconf {
int ifc_len;
union {
void* ifc_buf;
struct ifreq* ifc_req;
};
};
unsigned int if_nametoindex(const char* ifname);
char* if_indextoname(unsigned int ifindex, char* ifname);