Remove bogus references to CONFIG_HAVE_GETHOSTBYNAME
This commit is contained in:
parent
6bfef5b2de
commit
5e8928d009
@ -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__)
|
||||
|
@ -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__)
|
||||
|
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user