netfid: fix build on musl
authorFlorian Fainelli <florian@openwrt.org>
Fri, 23 Nov 2012 20:02:10 +0000 (20:02 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Fri, 23 Nov 2012 20:02:10 +0000 (20:02 +0000)
AF_INET* is provided by sys/socket.h

Signed-off-by: Florian Fainelli <florian@openwrt.org>
SVN-Revision: 34310

package/network/config/netifd/patches/001-musl_af_inet_include.patch [new file with mode: 0644]

diff --git a/package/network/config/netifd/patches/001-musl_af_inet_include.patch b/package/network/config/netifd/patches/001-musl_af_inet_include.patch
new file mode 100644 (file)
index 0000000..510ee05
--- /dev/null
@@ -0,0 +1,11 @@
+diff -urN netifd-2012-10-29/utils.c netifd-2012-10-29.new/utils.c
+--- netifd-2012-10-29/utils.c  2012-11-23 17:15:39.000000000 +0100
++++ netifd-2012-10-29.new/utils.c      2012-11-23 17:16:53.409244361 +0100
+@@ -17,6 +17,7 @@
+ #include <arpa/inet.h>
+ #include <netinet/in.h>
++#include <sys/socket.h>
+ void
+ __vlist_simple_init(struct vlist_simple_tree *tree, int offset)