Another FIX for gethostbyname if CONFIG_NETDB_DNSCLIENT is not defined

This commit is contained in:
Gregory Nutt
2015-07-19 14:45:34 -06:00
parent 05a2c82409
commit 8b9cafe70a
3 changed files with 13 additions and 13 deletions
+2
View File
@@ -327,6 +327,7 @@ static int lib_find_answer(FAR const char *name, FAR struct hostent *host,
*
****************************************************************************/
#ifdef CONFIG_NETDB_DNSCLIENT
static int lib_dns_query(FAR const char *hostname,
FAR struct sockaddr *addr, socklen_t *addrlen)
{
@@ -350,6 +351,7 @@ static int lib_dns_query(FAR const char *hostname,
close(sd);
return ret;
}
#endif /* CONFIG_NETDB_DNSCLIENT */
/****************************************************************************
* Name: lib_dns_lookup