Explorar o código

LibC: Add struct ifconf in net/if.h

This fixes building the scummvm port.
Gunnar Beutner %!s(int64=3) %!d(string=hai) anos
pai
achega
a1518e870d
Modificáronse 1 ficheiros con 8 adicións e 0 borrados
  1. 8 0
      Userland/Libraries/LibC/net/if.h

+ 8 - 0
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);