mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-28 12:18:56 +00:00
LibC: Add struct ifconf in net/if.h
This fixes building the scummvm port.
This commit is contained in:
parent
b2ec579e98
commit
a1518e870d
Notes:
sideshowbarker
2024-07-18 07:01:09 +09:00
Author: https://github.com/gunnarbeutner
Commit: a1518e870d
Pull-request: https://github.com/SerenityOS/serenity/pull/9388
Issue: https://github.com/SerenityOS/serenity/issues/9168
1 changed files with 8 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue