harfbuzz: security bump to version 1.4.4
[buildroot-gz.git] / package / libnetfilter_queue / 0002-musl.patch
blob3765d58af31f8827a088ea7bffae564d17138c0b
1 From 5348da83403383a60831f4c297841afb98692887 Mon Sep 17 00:00:00 2001
2 From: Felix Janda <felix.janda@posteo.de>
3 Date: Sat, 16 May 2015 14:45:46 +0200
4 Subject: [PATCH] extra: Define _GNU_SOURCE to get members of tcphdr&ucphdr
6 The source uses linux names for members of tcphdr. For example
7 "source" instead of "th_sport", ... musl libc's headers need
8 _GNU_SOURCE defined in order to expose these.
10 Signed-off-by: Felix Janda <felix.janda@posteo.de>
11 Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
12 [yann.morin.1998@free.fr: backported from upstream]
13 Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
14 ---
15 src/extra/tcp.c | 1 +
16 src/extra/udp.c | 1 +
17 2 files changed, 2 insertions(+)
19 diff --git a/src/extra/tcp.c b/src/extra/tcp.c
20 index bf161aa..d1cd79d 100644
21 --- a/src/extra/tcp.c
22 +++ b/src/extra/tcp.c
23 @@ -15,6 +15,7 @@
24 #include <arpa/inet.h>
25 #include <netinet/ip.h>
26 #include <netinet/ip6.h>
27 +#define _GNU_SOURCE
28 #include <netinet/tcp.h>
30 #include <libnetfilter_queue/libnetfilter_queue.h>
31 diff --git a/src/extra/udp.c b/src/extra/udp.c
32 index 6e6baed..8c44a66 100644
33 --- a/src/extra/udp.c
34 +++ b/src/extra/udp.c
35 @@ -14,6 +14,7 @@
36 #include <arpa/inet.h>
37 #include <netinet/ip.h>
38 #include <netinet/ip6.h>
39 +#define _GNU_SOURCE
40 #include <netinet/udp.h>
42 #include <libnetfilter_queue/libnetfilter_queue.h>
43 --
44 1.9.1