1Include <sys/types.h> to get the u_int* definitions 2 3This is needed to fix the build with the musl C library, and this 4patch comes from 5http://git.alpinelinux.org/cgit/aports/plain/main/libnfnetlink/musl-fix-includes.patch. 6 7It will no longer be needed with upcoming upstream releases of 8libnfnetlink, since they have switched to use the <stdint.h> types 9instead. However this change was too invasive to backport. 10 11Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> 12 13--- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink.h 14+++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h 15@@ -1,6 +1,6 @@ 16 #ifndef _NFNETLINK_H 17 #define _NFNETLINK_H 18-#include <linux/types.h> 19+#include <sys/types.h> 20 #include <libnfnetlink/linux_nfnetlink_compat.h> 21 22 enum nfnetlink_groups { 23--- libnfnetlink-1.0.1.orig/include/libnfnetlink/libnfnetlink.h 24+++ libnfnetlink-1.0.1/include/libnfnetlink/libnfnetlink.h 25@@ -15,6 +15,7 @@ 26 #define aligned_u64 unsigned long long __attribute__((aligned(8))) 27 #endif 28 29+#include <sys/types.h> 30 #include <sys/socket.h> /* for sa_family_t */ 31 #include <linux/netlink.h> 32 #include <libnfnetlink/linux_nfnetlink.h> 33