diff options
author | Yang Tse <yangsita@gmail.com> | 2008-09-17 01:02:57 +0000 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2008-09-17 01:02:57 +0000 |
commit | f214b583f5a0439f63258dd0c21b2a5045b822c8 (patch) | |
tree | f040ae2b7239873b6b7f32035c61a3b989ce1104 /ares_gethostbyname.c | |
parent | 861ea67ee80d47634b9ad2474a354a61a42f7965 (diff) | |
download | c-ares-f214b583f5a0439f63258dd0c21b2a5045b822c8.tar.gz c-ares-f214b583f5a0439f63258dd0c21b2a5045b822c8.tar.bz2 c-ares-f214b583f5a0439f63258dd0c21b2a5045b822c8.zip |
adjust inclusion of "nameser.h"
Diffstat (limited to 'ares_gethostbyname.c')
-rw-r--r-- | ares_gethostbyname.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/ares_gethostbyname.c b/ares_gethostbyname.c index 3048bb2..a32da8f 100644 --- a/ares_gethostbyname.c +++ b/ares_gethostbyname.c @@ -17,30 +17,25 @@ #include "setup.h" -#if defined(WIN32) && !defined(WATT32) -#include "nameser.h" -#else #ifdef HAVE_SYS_SOCKET_H -#include <sys/socket.h> +# include <sys/socket.h> #endif #ifdef HAVE_NETINET_IN_H -#include <netinet/in.h> +# include <netinet/in.h> #endif #ifdef HAVE_NETDB_H -#include <netdb.h> +# include <netdb.h> #endif #ifdef HAVE_ARPA_INET_H -#include <arpa/inet.h> -#endif -#ifdef HAVE_ARPA_NAMESER_H -#include <arpa/nameser.h> +# include <arpa/inet.h> #endif #ifdef HAVE_ARPA_NAMESER_H -#include <arpa/nameser.h> +# include <arpa/nameser.h> +#else +# include "nameser.h" #endif #ifdef HAVE_ARPA_NAMESER_COMPAT_H -#include <arpa/nameser_compat.h> -#endif +# include <arpa/nameser_compat.h> #endif #include <stdio.h> |