1 Include <sys/types.h> to get the u_int* definitions
3 This is needed to fix the build with the musl C library, and this
5 http://git.alpinelinux.org/cgit/aports/plain/main/libnfnetlink/musl-fix-includes.patch.
7 It will no longer be needed with upcoming upstream releases of
8 libnfnetlink, since they have switched to use the <stdint.h> types
9 instead. However this change was too invasive to backport.
11 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
13 --- libnfnetlink-1.0.1.orig/include/libnfnetlink/linux_nfnetlink.h
14 +++ libnfnetlink-1.0.1/include/libnfnetlink/linux_nfnetlink.h
18 -#include <linux/types.h>
19 +#include <sys/types.h>
20 #include <libnfnetlink/linux_nfnetlink_compat.h>
22 enum nfnetlink_groups {
23 --- libnfnetlink-1.0.1.orig/include/libnfnetlink/libnfnetlink.h
24 +++ libnfnetlink-1.0.1/include/libnfnetlink/libnfnetlink.h
26 #define aligned_u64 unsigned long long __attribute__((aligned(8)))
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>