make ifaddrs.h expose sys/socket.h

the getifaddrs interface seems to have been invented by glibc, and
they expose socket.h, so for us not to do so is just gratuitous
incompatibility with the interface we're mimicing.
This commit is contained in:
Rich Felker
2013-04-10 22:38:46 -04:00
parent 9947ed5c20
commit 4ba3ebdcfe
+1
View File
@@ -7,6 +7,7 @@ extern "C" {
#include <features.h>
#include <netinet/in.h>
#include <sys/socket.h>
struct ifaddrs {
struct ifaddrs *ifa_next;