From c37b5d80dcbc0b30427ac7671b9eccd8856b1579 Mon Sep 17 00:00:00 2001 From: Matthias Andree Date: Mon, 7 Aug 2006 08:38:52 +0000 Subject: Freeaddrinfo() fix for Uli Zappe's bug. This might fix Debian Bug#294547 and Bug#377135. svn path=/branches/BRANCH_6-3/; revision=4880 --- fetchmail.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'fetchmail.h') diff --git a/fetchmail.h b/fetchmail.h index 1191bd34..2ea7972e 100644 --- a/fetchmail.h +++ b/fetchmail.h @@ -23,6 +23,13 @@ # endif #endif +#ifdef HAVE_SYS_SOCKET_H +#include +#endif +#ifdef HAVE_NET_SOCKET_H +#include +#endif +#include #include /* Import Trio if needed */ @@ -651,7 +658,9 @@ void escapes(const char *, char *); char *visbuf(const char *); const char *showproto(int); void dump_config(struct runctl *runp, struct query *querylist); -int is_host_alias(const char *, struct query *); +int is_host_alias(const char *, struct query *, struct addrinfo **); + +extern struct addrinfo *ai0, *ai1; /** Try to obtain fully qualified hostname of current host. Exit with * PS_DNS if \a required is true and there is a DNS error. Exit with -- cgit v1.2.3