pkgsrc/net/wget/patches/patch-ad
bouyer b4b35c7537 ipv6-mapped ipv4 addresses aren't enabled by default on NetBSD, and probably
others OS as well. Patch wget so that it won't try to use ipv6-mapped ipv4
addresses, but uses INET4 socket sockets instead. Bump pkgrev.

Fix issues with v6-enabled wget reported on tech-pkg.
2005-01-25 20:07:25 +00:00

30 lines
1,016 B
Text

$NetBSD: patch-ad,v 1.8 2005/01/25 20:07:25 bouyer Exp $
--- src/host.h.orig Sat Oct 11 03:39:07 2003
+++ src/host.h Sun Jan 23 21:22:57 2005
@@ -71,6 +71,7 @@
typedef struct {
unsigned char bytes[MAX_IP_ADDRESS_SIZE];
+ int family;
} ip_address;
/* Function declarations */
@@ -92,14 +93,12 @@
void host_cleanup PARAMS ((void));
-void wget_sockaddr_set_address PARAMS((wget_sockaddr *, int,
- unsigned short, ip_address *));
+void wget_sockaddr_set_address PARAMS((wget_sockaddr *,
+ unsigned short, ip_address *, int));
void wget_sockaddr_set_port PARAMS((wget_sockaddr *, unsigned short));
void *wget_sockaddr_get_addr PARAMS((wget_sockaddr *));
unsigned short wget_sockaddr_get_port PARAMS((const wget_sockaddr *));
-socklen_t sockaddr_len PARAMS(());
-void map_ipv4_to_ip PARAMS((ip4_address *, ip_address *));
-int map_ip_to_ipv4 PARAMS((ip_address *, ip4_address *));
+socklen_t sockaddr_len PARAMS((int));
extern int ip_default_family; /* defined in host.c */