mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-01 20:29:00 +00:00
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:
parent
c7bd1f4186
commit
812450ebe6
9 changed files with 9 additions and 7 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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>
|
||||
|
||||
/****************************************************************************
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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.
|
||||
|
||||
|
|
|
|||
|
|
@ -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).
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue