aboutsummaryrefslogtreecommitdiffstats
path: root/socket.h
diff options
context:
space:
mode:
authorMatthias Andree <matthias.andree@gmx.de>2006-08-07 08:38:52 +0000
committerMatthias Andree <matthias.andree@gmx.de>2006-08-07 08:38:52 +0000
commitc37b5d80dcbc0b30427ac7671b9eccd8856b1579 (patch)
treefce7689e312b4747523da39ab5975dc0d90b6bb0 /socket.h
parent00428859b66df7161ee4a0d3f55afaa03aa7a2c3 (diff)
downloadfetchmail-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 'socket.h')
-rw-r--r--socket.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/socket.h b/socket.h
index d4fc947e..fb86b17e 100644
--- a/socket.h
+++ b/socket.h
@@ -7,8 +7,16 @@
#ifndef SOCKET__
#define SOCKET__
+#include <config.h>
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#elif HAVE_NET_SOCKET_H
+#include <net/socket.h>
+#endif
+#include <netdb.h>
+
/* Create a new client socket; returns -1 on error */
-int SockOpen(const char *host, const char *service, const char *plugin);
+int SockOpen(const char *host, const char *service, const char *plugin, struct addrinfo **);
/* Returns 1 if this socket is OK, 0 if it isn't select()able
* on - probably because it's been closed. You should