diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-05-16 15:44:32 +0200 |
---|---|---|
committer | Eric Leblond <eric@regit.org> | 2015-06-23 14:39:01 +0200 |
commit | 89263555143e3c0125320ca565b41805f27460c9 (patch) | |
tree | 0978eeecb77d527fdc0a99fb45562d145581b449 | |
parent | ce626f805e9ec21e8d7437db4a0dfbb981a367a8 (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>
-rw-r--r-- | filter/raw2packet/ulogd_raw2packet_BASE.c | 1 | ||||
-rw-r--r-- | filter/ulogd_filter_PWSNIFF.c | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/filter/raw2packet/ulogd_raw2packet_BASE.c b/filter/raw2packet/ulogd_raw2packet_BASE.c index c9d5227..ad894fc 100644 --- a/filter/raw2packet/ulogd_raw2packet_BASE.c +++ b/filter/raw2packet/ulogd_raw2packet_BASE.c @@ -35,6 +35,7 @@ #include <netinet/ip.h> #include <netinet/ip6.h> #include <netinet/in.h> +#define _GNU_SOURCE #include <netinet/tcp.h> #include <netinet/ip_icmp.h> #include <netinet/icmp6.h> 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> |