diff options
Diffstat (limited to 'src/helpers/ftp.c')
-rw-r--r-- | src/helpers/ftp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/helpers/ftp.c b/src/helpers/ftp.c index 2c8dcd6..24ee877 100644 --- a/src/helpers/ftp.c +++ b/src/helpers/ftp.c @@ -25,6 +25,7 @@ #include <ctype.h> /* for isdigit */ #include <errno.h> +#define _GNU_SOURCE #include <netinet/tcp.h> #include <libmnl/libmnl.h> @@ -58,7 +59,7 @@ enum nf_ct_ftp_type { }; static int -get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, u_int8_t term) +get_ipv6_addr(const char *src, size_t dlen, struct in6_addr *dst, uint8_t term) { const char *end; int ret = in6_pton(src, min_t(size_t, dlen, 0xffff), |