mirror of
https://github.com/curl/curl.git
synced 2026-07-22 23:57:18 +03:00
the pack_hostent() proto isn't used/needed with ipv6 is enabled.
time to restructure this source file!
This commit is contained in:
parent
9044fcbb5f
commit
5ca47f19d7
1 changed files with 6 additions and 1 deletions
|
|
@ -114,7 +114,11 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
|
|||
int port,
|
||||
int *waitp);
|
||||
|
||||
#if (!defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) || \
|
||||
defined(USE_THREADING_GETHOSTBYNAME)) && \
|
||||
!defined(ENABLE_IPV6)
|
||||
static struct hostent* pack_hostent(char** buf, struct hostent* orig);
|
||||
#endif
|
||||
|
||||
#ifdef USE_THREADING_GETHOSTBYNAME
|
||||
#ifdef DEBUG_THREADING_GETHOSTBYNAME
|
||||
|
|
@ -925,7 +929,8 @@ static Curl_addrinfo *my_getaddrinfo(struct connectdata *conn,
|
|||
}
|
||||
#else /* following code is IPv4-only */
|
||||
|
||||
#if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) || defined(USE_THREADING_GETHOSTBYNAME)
|
||||
#if !defined(HAVE_GETHOSTBYNAME_R) || defined(USE_ARES) || \
|
||||
defined(USE_THREADING_GETHOSTBYNAME)
|
||||
static void hostcache_fixoffset(struct hostent *h, long offset);
|
||||
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue