If NSH or Webclient is selected, make sure that CONFIG_LIBC_NETDB is enabled; reanem dnsclient.h to dns.h

This commit is contained in:
Gregory Nutt 2015-07-12 09:25:39 -06:00
parent c7bd1f4186
commit 812450ebe6
9 changed files with 9 additions and 7 deletions

View file

@ -55,7 +55,7 @@
#if defined(CONFIG_EXAMPLES_BRIDGE_NET1_DHCPC) || \
defined(CONFIG_EXAMPLES_BRIDGE_NET2_DHCPC)
# include <arpa/inet.h>
# include <nuttx/net/dnsclient.h>
# include <nuttx/net/dns.h>
# include <apps/netutils/dhcpc.h>
#endif

View file

@ -65,7 +65,7 @@
/* DHCPC may be used in conjunction with any other feature (or not) */
#ifdef CONFIG_EXAMPLES_DISCOVER_DHCPC
# include <nuttx/net/dnsclient.h>
# include <nuttx/net/dns.h>
# include <apps/netutils/dhcpc.h>
#endif

View file

@ -71,7 +71,7 @@
/* DHCPC may be used in conjunction with any other feature (or not) */
#ifdef CONFIG_EXAMPLES_TCPECHO_DHCPC
# include <nuttx/net/dnsclient.h>
# include <nuttx/net/dns.h>
# include <apps/netutils/dhcpc.h>
#endif

View file

@ -70,7 +70,7 @@
/* DHCPC may be used in conjunction with any other feature (or not) */
#ifdef CONFIG_EXAMPLES_WEBSERVER_DHCPC
# include <nuttx/net/dnsclient.h>
# include <nuttx/net/dns.h>
# include <apps/netutils/dhcpc.h>
#endif

View file

@ -47,7 +47,7 @@
#include <net/if.h>
#include <apps/netutils/netlib.h>
#include <nuttx/net/dnsclient.h>
#include <nuttx/net/dns.h>
#include <apps/netutils/webclient.h>
/****************************************************************************

View file

@ -80,7 +80,7 @@
/* DHCPC may be used in conjunction with any other feature (or not) */
#ifdef CONFIG_EXAMPLES_XMLRPC_DHCPC
# include <nuttx/net/dnsclient.h>
# include <nuttx/net/dns.h>
# include <apps/netutils/dhcpc.h>
#endif

View file

@ -7,6 +7,7 @@ config NETUTILS_WEBCLIENT
bool "uIP web client"
default n
depends on NET_TCP
select LIBC_NETDB
---help---
Enable support for the uIP web client.

View file

@ -7,6 +7,7 @@ config NSH_LIBRARY
bool "NSH Library"
default n
select NETUTILS_NETLIB if NET
select LIBC_NETDB if NET
---help---
Build the NSH support library. This is used, for example, by
examples/nsh in order to implement the full NuttShell (NSH).

View file

@ -69,7 +69,7 @@
#include <apps/netutils/netlib.h>
#if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS)
# include <nuttx/net/dnsclient.h>
# include <nuttx/net/dns.h>
# include <apps/netutils/dhcpc.h>
#endif