$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 */