mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 08:36:24 +08:00
6loWPAN: Fix compile errors and warnings when building the complete 6loWPAN configuration.
This commit is contained in:
@@ -268,8 +268,8 @@ int dns_find_answer(FAR const char *hostname, FAR struct sockaddr *addr,
|
||||
/* We have a match. Return the resolved host address */
|
||||
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
if (entry->addr.addr.sa_family == AF_INET)
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
if (entry->addr.addr.sa_family == AF_INET)
|
||||
#endif
|
||||
{
|
||||
inlen = sizeof(struct sockaddr_in);
|
||||
@@ -277,8 +277,8 @@ int dns_find_answer(FAR const char *hostname, FAR struct sockaddr *addr,
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_NET_IPv6
|
||||
else
|
||||
#ifdef CONFIG_NET_IPv4
|
||||
else
|
||||
#endif
|
||||
{
|
||||
inlen = sizeof(struct sockaddr_in6);
|
||||
|
||||
@@ -39,6 +39,7 @@
|
||||
|
||||
#include <nuttx/config.h>
|
||||
|
||||
#include <string.h>
|
||||
#include <semaphore.h>
|
||||
#include <errno.h>
|
||||
#include <assert.h>
|
||||
|
||||
Reference in New Issue
Block a user