libnfnetlink: fix musl compile errors
authorFelix Fietkau <nbd@openwrt.org>
Mon, 9 Jun 2014 13:47:56 +0000 (13:47 +0000)
committerFelix Fietkau <nbd@openwrt.org>
Mon, 9 Jun 2014 13:47:56 +0000 (13:47 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 41061

package/libs/libnfnetlink/patches/100-missing_include.patch [new file with mode: 0644]

diff --git a/package/libs/libnfnetlink/patches/100-missing_include.patch b/package/libs/libnfnetlink/patches/100-missing_include.patch
new file mode 100644 (file)
index 0000000..68155c3
--- /dev/null
@@ -0,0 +1,10 @@
+--- a/include/libnfnetlink/libnfnetlink.h
++++ b/include/libnfnetlink/libnfnetlink.h
+@@ -15,6 +15,7 @@
+ #define aligned_u64 unsigned long long __attribute__((aligned(8)))
+ #endif
++#include <sys/types.h>
+ #include <sys/socket.h>       /* for sa_family_t */
+ #include <linux/netlink.h>
+ #include <libnfnetlink/linux_nfnetlink.h>