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>
17 2 files changed, 2 insertions(+)
19 diff --git a/src/extra/tcp.c b/src/extra/tcp.c
20 index bf161aa..d1cd79d 100644
24 #include <arpa/inet.h>
25 #include <netinet/ip.h>
26 #include <netinet/ip6.h>
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
36 #include <arpa/inet.h>
37 #include <netinet/ip.h>
38 #include <netinet/ip6.h>
40 #include <netinet/udp.h>
42 #include <libnetfilter_queue/libnetfilter_queue.h>