python-werkzeug: bump to version 0.11.15
[buildroot-gz.git] / package / libnfnetlink / 0002-musl.patch
blobbee7898aae7a9eccb160aa28f9b4856c386a0224
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
4 patch comes from
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
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>
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
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>