python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / package / ulogd / 0002-Define-_GNU_SOURCE-to-get-members-of-tcphdr.patch
blob0fbef834e408a7bfa594b1cfac44f656d95e394b
1 From 89263555143e3c0125320ca565b41805f27460c9 Mon Sep 17 00:00:00 2001
2 From: Felix Janda <felix.janda@posteo.de>
3 Date: Sat, 16 May 2015 15:44:32 +0200
4 Subject: [PATCH] Define _GNU_SOURCE to get members of tcphdr
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 [Rahul Bedarkar: Backported from https://git.netfilter.org/ulogd2/commit/?id=89263555143e3c0125320ca565b41805f27460c9]
12 Signed-off-by: Rahul Bedarkar <rahul.bedarkar@imgtec.com>
13 ---
14 filter/raw2packet/ulogd_raw2packet_BASE.c | 1 +
15 filter/ulogd_filter_PWSNIFF.c | 1 +
16 2 files changed, 2 insertions(+)
18 diff --git a/filter/raw2packet/ulogd_raw2packet_BASE.c b/filter/raw2packet/ulogd_raw2packet_BASE.c
19 index c9d5227..ad894fc 100644
20 --- a/filter/raw2packet/ulogd_raw2packet_BASE.c
21 +++ b/filter/raw2packet/ulogd_raw2packet_BASE.c
22 @@ -35,6 +35,7 @@
23 #include <netinet/ip.h>
24 #include <netinet/ip6.h>
25 #include <netinet/in.h>
26 +#define _GNU_SOURCE
27 #include <netinet/tcp.h>
28 #include <netinet/ip_icmp.h>
29 #include <netinet/icmp6.h>
30 diff --git a/filter/ulogd_filter_PWSNIFF.c b/filter/ulogd_filter_PWSNIFF.c
31 index 5169eee..a3e2b42 100644
32 --- a/filter/ulogd_filter_PWSNIFF.c
33 +++ b/filter/ulogd_filter_PWSNIFF.c
34 @@ -25,6 +25,7 @@
35 #include <sys/socket.h>
36 #include <netinet/ip.h>
37 #include <netinet/in.h>
38 +#define _GNU_SOURCE
39 #include <netinet/tcp.h>
40 #include <ulogd/ulogd.h>
42 --
43 2.6.2