From c052221ed80f6c8cddccdbb18907375502652042 Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Fri, 17 Apr 2009 11:29:18 +0000 Subject: [PATCH] Compile fix for BSD libc. --- filters.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/filters.c b/filters.c index 43b002f2..15dba3da 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.113 2009/03/08 14:19:23 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.114 2009/04/17 11:27:49 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -40,6 +40,9 @@ const char filters_rcs[] = "$Id: filters.c,v 1.113 2009/03/08 14:19:23 fabiankei * * Revisions : * $Log: filters.c,v $ + * Revision 1.114 2009/04/17 11:27:49 fabiankeil + * Petr Pisar's privoxy-3.0.12-ipv6-3.diff. + * * Revision 1.113 2009/03/08 14:19:23 fabiankeil * Fix justified (but harmless) compiler warnings * on platforms where sizeof(int) < sizeof(long). @@ -822,14 +825,14 @@ int match_sockaddr(const struct sockaddr_storage *network, /* Check for family */ if (network->ss_family == AF_INET && address->ss_family == AF_INET6 && - IN6_IS_ADDR_V4MAPPED(address_addr)) + IN6_IS_ADDR_V4MAPPED((struct in6_addr *)address_addr)) { /* Map AF_INET6 V4MAPPED address into AF_INET */ address_addr += 12; addr_len = 4; } else if (network->ss_family == AF_INET6 && address->ss_family == AF_INET && - IN6_IS_ADDR_V4MAPPED(network_addr)) + IN6_IS_ADDR_V4MAPPED((struct in6_addr *)network_addr)) { /* Map AF_INET6 V4MAPPED network into AF_INET */ network_addr += 12; -- 2.39.2