include a definition of in6addr_loopback if it doesn't exist

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10502 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
2001-08-17 13:06:57 +00:00
parent 83329f5dd6
commit 8d1688e269

View File

@@ -172,6 +172,13 @@ const_v6 (struct addrinfo *a, void *data, int port)
}
#endif
/* this is mostly a hack for some versions of AIX that has a prototype
for in6addr_loopback but no actual symbol in libc */
#if defined(HAVE_IPV6) && !defined(HAVE_IN6ADDR_LOOPBACK) && defined(IN6ADDR_LOOPBACK_INIT)
#define in6addr_loopback _roken_in6addr_loopback
struct in6_addr in6addr_loopback = IN6ADDR_LOOPBACK_INIT;
#endif
static int
get_null (const struct addrinfo *hints,
int port, int protocol, int socktype,