diff options
author | Felix Janda <felix.janda@posteo.de> | 2015-05-16 12:05:33 +0200 |
---|---|---|
committer | Pablo Neira Ayuso <pablo@netfilter.org> | 2015-05-21 14:48:47 +0200 |
commit | fe1f2d58add1e56e651c43de8cd60db8123d49bb (patch) | |
tree | 4549e0837c7b97a420fc26be8e5d9d208b27d311 /src/helpers/tns.c | |
parent | 12a5c50a831176b7f95a3535fe42ecbcf332afb1 (diff) | |
download | conntrack-tools-fe1f2d58add1e56e651c43de8cd60db8123d49bb.tar.gz conntrack-tools-fe1f2d58add1e56e651c43de8cd60db8123d49bb.zip |
src: Define _GNU_SOURCE to get members of tcphdr&ucphdr
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>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src/helpers/tns.c')
-rw-r--r-- | src/helpers/tns.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/helpers/tns.c b/src/helpers/tns.c index 5833fea..2b4fed4 100644 --- a/src/helpers/tns.c +++ b/src/helpers/tns.c @@ -18,6 +18,7 @@ #include <ctype.h> /* for isdigit */ #include <errno.h> +#define _GNU_SOURCE #include <netinet/tcp.h> #include <libmnl/libmnl.h> |