about summary refs log tree commit diff
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2013-04-10 22:38:46 -0400
committerRich Felker <dalias@aerifal.cx>2013-04-10 22:38:46 -0400
commit4ba3ebdcfeb7b5aa2dd5079e939514a634395124 (patch)
tree057a5021e379f75bc1ae1de0ffb7907842ee72c2
parent9947ed5c2008ca7ec8461dbc0db8a2aacddcea6b (diff)
downloadmusl-4ba3ebdcfeb7b5aa2dd5079e939514a634395124.tar.gz
musl-4ba3ebdcfeb7b5aa2dd5079e939514a634395124.tar.xz
musl-4ba3ebdcfeb7b5aa2dd5079e939514a634395124.zip
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.
-rw-r--r--include/ifaddrs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ifaddrs.h b/include/ifaddrs.h
index 800eef65..4726db6e 100644
--- a/include/ifaddrs.h
+++ b/include/ifaddrs.h
@@ -7,6 +7,7 @@ extern "C" {
 
 #include <features.h>
 #include <netinet/in.h>
+#include <sys/socket.h>
 
 struct ifaddrs {
 	struct ifaddrs *ifa_next;