diff options
author | Matthias Andree <matthias.andree@gmx.de> | 2006-08-07 08:38:52 +0000 |
---|---|---|
committer | Matthias Andree <matthias.andree@gmx.de> | 2006-08-07 08:38:52 +0000 |
commit | c37b5d80dcbc0b30427ac7671b9eccd8856b1579 (patch) | |
tree | fce7689e312b4747523da39ab5975dc0d90b6bb0 /fetchmail.h | |
parent | 00428859b66df7161ee4a0d3f55afaa03aa7a2c3 (diff) | |
download | fetchmail-c37b5d80dcbc0b30427ac7671b9eccd8856b1579.tar.gz fetchmail-c37b5d80dcbc0b30427ac7671b9eccd8856b1579.tar.bz2 fetchmail-c37b5d80dcbc0b30427ac7671b9eccd8856b1579.zip |
Freeaddrinfo() fix for Uli Zappe's bug.
This might fix Debian Bug#294547 and Bug#377135.
svn path=/branches/BRANCH_6-3/; revision=4880
Diffstat (limited to 'fetchmail.h')
-rw-r--r-- | fetchmail.h | 11 |
1 files changed, 10 insertions, 1 deletions
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 <sys/socket.h> +#endif +#ifdef HAVE_NET_SOCKET_H +#include <net/socket.h> +#endif +#include <netdb.h> #include <stdio.h> /* 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 |