From 9f83527479509ec7303a9b2bdc32569f310fd67d Mon Sep 17 00:00:00 2001 From: Devid Antonio Filoni Date: Sat, 18 Oct 2008 22:01:53 +0200 Subject: [PATCH] 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 --- src/libiptc/libip6tc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.11.0