From: Jan Engelhardt Date: Mon, 1 Aug 2011 18:08:42 +0000 (+0200) Subject: libxt_string: define _GNU_SOURCE for strnlen X-Git-Tag: v1.4.12.1~33^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=67156c0b9a3d35f5e7836e5683d8ca0b46ac36ca;p=thirdparty%2Fiptables.git libxt_string: define _GNU_SOURCE for strnlen On RHEL-5.6 and clones with its gcc-4.1.2 and glibc-2.5: libxt_string.c: In function "parse_string": libxt_string.c:84: warning: implicit declaration of function "strnlen" Signed-off-by: Jan Engelhardt --- diff --git a/extensions/libxt_string.c b/extensions/libxt_string.c index eef0b081..8cee3359 100644 --- a/extensions/libxt_string.c +++ b/extensions/libxt_string.c @@ -20,6 +20,7 @@ * updated to work with slightly modified * ipt_string_info. */ +#define _GNU_SOURCE 1 /* strnlen for older glibcs */ #include #include #include