Code

libiptc/libip6tc.c: Fix a glibc 2.8 compatibility problem.
authorDevid Antonio Filoni <devidfil@gmail.com>
Sat, 18 Oct 2008 20:01:53 +0000 (22:01 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Mon, 20 Oct 2008 06:44:02 +0000 (08:44 +0200)
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 <sh@tokkee.org>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/libiptc/libip6tc.c

index b30bb28b90f2bef0c0143410537ba9b84115cc18..276b7af8fa3769eee00157277d3f887e1e7628d0 100644 (file)
@@ -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)