aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-04 02:27:11 +0000
committerYang Tse <yangsita@gmail.com>2006-07-04 02:27:11 +0000
commit55138753c63cb7a6d1191028df25b689b73baefa (patch)
tree92fd56a386080ea72041fbe4430387e9c7456ffd /lib/hostip.h
parent43369b8096d14950f73a92126c4c5ba0bac4cd4a (diff)
Test HAVE_GETNAMEINFO definition before using GETNAMEINFO_XXX definitions.
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 3b8f8ce15..ade5efa28 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -196,6 +196,7 @@ int curl_dogetaddrinfo(char *hostname, char *service,
struct addrinfo *hints,
struct addrinfo **result,
int line, const char *source);
+#ifdef HAVE_GETNAMEINFO
int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa,
GETNAMEINFO_TYPE_ARG2 salen,
char *host, GETNAMEINFO_TYPE_ARG46 hostlen,
@@ -203,6 +204,7 @@ int curl_dogetnameinfo(GETNAMEINFO_QUAL_ARG1 GETNAMEINFO_TYPE_ARG1 sa,
GETNAMEINFO_TYPE_ARG7 flags,
int line, const char *source);
#endif
+#endif
/* This is the callback function that is used when we build with asynch
resolve, ipv4 */