Remove bogus references to CONFIG_HAVE_GETHOSTBYNAME

This commit is contained in:
Gregory Nutt 2015-07-10 14:03:28 -06:00
parent 6bfef5b2de
commit 5e8928d009
4 changed files with 9 additions and 15 deletions

View File

@ -52,8 +52,8 @@
#define HTONS(a) htons(a)
#define HTONL(a) htonl(a)
#define CONFIG_CPP_HAVE_WARNING 1
#define CONFIG_HAVE_GETHOSTBYNAME 1
#define CONFIG_CPP_HAVE_WARNING 1
#define CONFIG_LIBC_NETDB 1
#define FAR
#define ndbg(...) printf(__VA_ARGS__)

View File

@ -52,8 +52,8 @@
#define HTONS(a) htons(a)
#define HTONL(a) htonl(a)
#define CONFIG_CPP_HAVE_WARNING 1
#define CONFIG_HAVE_GETHOSTBYNAME 1
#define CONFIG_CPP_HAVE_WARNING 1
#define CONFIG_LIBC_NETDB 1
#define FAR
#define ndbg(...) printf(__VA_ARGS__)

View File

@ -60,19 +60,16 @@
#include <stdio.h>
#include <stdbool.h>
#include <unistd.h>
#include <netdb.h>
#include <string.h>
#include <errno.h>
#ifdef CONFIG_HAVE_GETHOSTBYNAME
# include <netdb.h>
#else
# include <nuttx/net/dnsclient.h>
#endif
#include <arpa/inet.h>
#include <netinet/in.h>
#include <nuttx/version.h>
#include <nuttx/net/dnsclient.h>
#include <apps/netutils/netlib.h>
#include <apps/netutils/webclient.h>

View File

@ -86,11 +86,8 @@
#endif
#if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS)
# ifdef CONFIG_HAVE_GETHOSTBYNAME
# include <netdb.h>
# else
# include <nuttx/net/dnsclient.h>
# endif
# include <netdb.h>
# include <nuttx/net/dnsclient.h>
# include <apps/netutils/dhcpc.h>
#endif