From 8d1688e269f56ed2c9fe90f0916c18cd2d6ef336 Mon Sep 17 00:00:00 2001 From: Johan Danielsson Date: Fri, 17 Aug 2001 13:06:57 +0000 Subject: [PATCH] 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 --- lib/roken/getaddrinfo.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/roken/getaddrinfo.c b/lib/roken/getaddrinfo.c index 82d8626c7..2f50ae5fb 100644 --- a/lib/roken/getaddrinfo.c +++ b/lib/roken/getaddrinfo.c @@ -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,