--------------------- PatchSet 5353 Date: 2007/08/16 22:13:41 Author: amosjeffries Branch: squid3-ipv6 Tag: (none) Log: Add getnameinfo.h ommitted from previous patch. Members: include/getnameinfo.h:1.1->1.1.2.1 --- /dev/null Fri Aug 17 00:21:01 2007 +++ squid3/include/getnameinfo.h Fri Aug 17 00:21:01 2007 @@ -0,0 +1,36 @@ +#ifndef _getnameinfo_h +#define _getnameinfo_h +/* + * Reconstructed from KAME getnameinfo.c (in lib/) + * + * $Id: getnameinfo.h,v 1.1.2.1 2007/08/16 22:13:41 amosjeffries Exp $ + */ + +#include "config.h" + +#ifdef HAVE_GETNAMEINFO + + /* These functions are provided by the OS */ +#define xgetnameinfo getnameinfo + +#else /* !HAVE_GETNAMEINFO */ + +/* RFC 2553 / Posix resolver */ +int +xgetnameinfo( + const struct sockaddr *sa, +#ifdef HAVE_SOCKLEN_T + socklen_t salen, +#else + unsigned int salen, +#endif + char *host, + size_t hostlen, + char *serv, + size_t servlen, + int flags ); + + +#endif /* HAVE_GETNAMEINFO */ + +#endif