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:
@@ -172,6 +172,13 @@ const_v6 (struct addrinfo *a, void *data, int port)
|
|||||||
}
|
}
|
||||||
#endif
|
#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
|
static int
|
||||||
get_null (const struct addrinfo *hints,
|
get_null (const struct addrinfo *hints,
|
||||||
int port, int protocol, int socktype,
|
int port, int protocol, int socktype,
|
||||||
|
Reference in New Issue
Block a user