make ifaddrs.h expose sys/socket.h
authorRich Felker <dalias@aerifal.cx>
Thu, 11 Apr 2013 02:38:46 +0000 (22:38 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 11 Apr 2013 02:38:46 +0000 (22:38 -0400)
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.

include/ifaddrs.h

index 800eef6..4726db6 100644 (file)
@@ -7,6 +7,7 @@ extern "C" {
 
 #include <features.h>
 #include <netinet/in.h>
+#include <sys/socket.h>
 
 struct ifaddrs {
        struct ifaddrs *ifa_next;