diff --git a/examples/sendmail/hostdefs.h b/examples/sendmail/hostdefs.h index e29df7856..64d37a96d 100644 --- a/examples/sendmail/hostdefs.h +++ b/examples/sendmail/hostdefs.h @@ -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__) diff --git a/examples/wget/hostdefs.h b/examples/wget/hostdefs.h index e29df7856..64d37a96d 100644 --- a/examples/wget/hostdefs.h +++ b/examples/wget/hostdefs.h @@ -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__) diff --git a/netutils/webclient/webclient.c b/netutils/webclient/webclient.c index c0541ff8e..b6e223fbc 100644 --- a/netutils/webclient/webclient.c +++ b/netutils/webclient/webclient.c @@ -60,19 +60,16 @@ #include #include #include +#include #include #include -#ifdef CONFIG_HAVE_GETHOSTBYNAME -# include -#else -# include -#endif - #include #include #include +#include + #include #include diff --git a/nshlib/nsh_netcmds.c b/nshlib/nsh_netcmds.c index edd76d206..09da45a4d 100644 --- a/nshlib/nsh_netcmds.c +++ b/nshlib/nsh_netcmds.c @@ -86,11 +86,8 @@ #endif #if defined(CONFIG_NSH_DHCPC) || defined(CONFIG_NSH_DNS) -# ifdef CONFIG_HAVE_GETHOSTBYNAME -# include -# else -# include -# endif +# include +# include # include #endif