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 --- socket.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'socket.h') 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 +#ifdef HAVE_SYS_SOCKET_H +#include +#elif HAVE_NET_SOCKET_H +#include +#endif +#include + /* 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 -- cgit v1.2.3