* 16-Aug-2007 : Altered configure checks
* Un-hacked slightly to use system gethostbyname()
*
- * Squid CVS $Id: getaddrinfo.h,v 1.1 2007/12/14 05:03:25 amosjeffries Exp $
+ * Squid CVS $Id$
*
* Original License and code follows.
*/
#ifdef HAVE_GETADDRINFO
- /* These functions are provided by the OS */
+/* These functions are provided by the OS */
#define xgetaddrinfo getaddrinfo
#define xfreeaddrinfo freeaddrinfo
#define xgai_strerror gai_strerror
#else /* !HAVE_GETADDRINFO */
/* SG 23/09/2007:
- On Windows the following definitions are already available, may be that
- this could be needed on some other platform */
+On Windows the following definitions are already available, may be that
+this could be needed on some other platform */
#if 0
-struct addrinfo
- {
+struct addrinfo {
int ai_flags; /* AI_PASSIVE, AI_CANONNAME, AI_NUMERICHOST */
int ai_family; /* PF_xxx */
int ai_socktype; /* SOCK_xxx */
char *ai_canonname; /* canonical name for nodename */
struct sockaddr *ai_addr; /* binary address */
struct addrinfo *ai_next; /* next structure in linked list */
- };
+};
/* Supposed to be defined in <netdb.h> */
#define AI_PASSIVE 1 /* Socket address is intended for `bind'. */
/* RFC 2553 / Posix resolver */
SQUIDCEXTERN int xgetaddrinfo (const char *nodename, const char *servname,
- const struct addrinfo *hints, struct addrinfo **res);
+ const struct addrinfo *hints, struct addrinfo **res);
/* Free addrinfo structure and associated storage */
SQUIDCEXTERN void xfreeaddrinfo (struct addrinfo *ai);