From: Devid Antonio Filoni Date: Sat, 18 Oct 2008 20:01:53 +0000 (+0200) Subject: libiptc/libip6tc.c: Fix a glibc 2.8 compatibility problem. X-Git-Tag: collectd-4.4.5~19 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=9f83527479509ec7303a9b2bdc32569f310fd67d;p=collectd.git libiptc/libip6tc.c: Fix a glibc 2.8 compatibility problem. Hi, the attached patch fix the build with glibc 2.8. Please include it in the next version. Thanks, Devid Antonio Filoni Signed-off-by: Sebastian Harl Signed-off-by: Florian Forster --- diff --git a/src/libiptc/libip6tc.c b/src/libiptc/libip6tc.c index b30bb28b..276b7af8 100644 --- a/src/libiptc/libip6tc.c +++ b/src/libiptc/libip6tc.c @@ -131,7 +131,7 @@ typedef unsigned int socklen_t; #include "libiptc.c" #define BIT6(a, l) \ - ((ntohl(a->in6_u.u6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1) + ((ntohl(a->s6_addr32[(l) / 32]) >> (31 - ((l) & 31))) & 1) int ipv6_prefix_length(const struct in6_addr *a)