summaryrefslogtreecommitdiffstats
path: root/filter/ulogd_filter_PWSNIFF.c
diff options
context:
space:
mode:
authorFelix Janda <felix.janda@posteo.de>2015-05-16 15:44:32 +0200
committerEric Leblond <eric@regit.org>2015-06-23 14:39:01 +0200
commit89263555143e3c0125320ca565b41805f27460c9 (patch)
tree0978eeecb77d527fdc0a99fb45562d145581b449 /filter/ulogd_filter_PWSNIFF.c
parentce626f805e9ec21e8d7437db4a0dfbb981a367a8 (diff)
Define _GNU_SOURCE to get members of tcphdr
The source uses linux names for members of tcphdr. For example "source" instead of "th_sport", ... musl libc's headers need _GNU_SOURCE defined in order to expose these. Signed-off-by: Felix Janda <felix.janda@posteo.de>
Diffstat (limited to 'filter/ulogd_filter_PWSNIFF.c')
-rw-r--r--filter/ulogd_filter_PWSNIFF.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/filter/ulogd_filter_PWSNIFF.c b/filter/ulogd_filter_PWSNIFF.c
index 5169eee..a3e2b42 100644
--- a/filter/ulogd_filter_PWSNIFF.c
+++ b/filter/ulogd_filter_PWSNIFF.c
@@ -25,6 +25,7 @@
#include <sys/socket.h>
#include <netinet/ip.h>
#include <netinet/in.h>
+#define _GNU_SOURCE
#include <netinet/tcp.h>
#include <ulogd/ulogd.h>