From a1518e870d84652bd525de38f8a3d9d38a46f8f6 Mon Sep 17 00:00:00 2001 From: Gunnar Beutner Date: Fri, 13 Aug 2021 20:44:46 +0200 Subject: [PATCH] LibC: Add struct ifconf in net/if.h This fixes building the scummvm port. --- Userland/Libraries/LibC/net/if.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Userland/Libraries/LibC/net/if.h b/Userland/Libraries/LibC/net/if.h index 9ede9c5c19..e8d1e69f14 100644 --- a/Userland/Libraries/LibC/net/if.h +++ b/Userland/Libraries/LibC/net/if.h @@ -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);