diff options
author | Yang Tse <yangsita@gmail.com> | 2006-07-04 02:27:11 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2006-07-04 02:27:11 +0000 |
commit | 55138753c63cb7a6d1191028df25b689b73baefa (patch) | |
tree | 92fd56a386080ea72041fbe4430387e9c7456ffd /lib/hostip6.c | |
parent | 43369b8096d14950f73a92126c4c5ba0bac4cd4a (diff) | |
download | curl-55138753c63cb7a6d1191028df25b689b73baefa.tar.gz |
Test HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions.
Diffstat (limited to 'lib/hostip6.c')
-rw-r--r-- | lib/hostip6.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hostip6.c b/lib/hostip6.c index b17bce9be..b36d62d4c 100644 --- a/lib/hostip6.c +++ b/lib/hostip6.c @@ -136,6 +136,7 @@ int curl_dogetaddrinfo(char *hostname, char *service, return res; } +#ifdef HAVE_GETNAMEINFO int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, GETNAMEINFO_TYPE_ARG2 salen, char *host, GETNAMEINFO_TYPE_ARG46 hostlen, @@ -160,6 +161,7 @@ int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa, } return res; } +#endif void curl_dofreeaddrinfo(struct addrinfo *freethis, int line, const char *source) |