summaryrefslogtreecommitdiff
path: root/ares/ares_parse_ptr_reply.c
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-17 01:02:57 +0000
committerYang Tse <yangsita@gmail.com>2008-09-17 01:02:57 +0000
commit39de6c784cf6282b675250d521b79da5e010a412 (patch)
tree3c768e8568c696640a2019e32d2767c4db056d88 /ares/ares_parse_ptr_reply.c
parente5c4482088f327043e59a516490fbb36c5df926a (diff)
downloadcurl-39de6c784cf6282b675250d521b79da5e010a412.tar.gz
adjust inclusion of "nameser.h"
Diffstat (limited to 'ares/ares_parse_ptr_reply.c')
-rw-r--r--ares/ares_parse_ptr_reply.c19
1 files changed, 9 insertions, 10 deletions
diff --git a/ares/ares_parse_ptr_reply.c b/ares/ares_parse_ptr_reply.c
index 4905e8457..13ff6521e 100644
--- a/ares/ares_parse_ptr_reply.c
+++ b/ares/ares_parse_ptr_reply.c
@@ -17,27 +17,26 @@
#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_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
+
#ifdef HAVE_STRINGS_H
-#include <strings.h>
+# include <strings.h>
#endif
#include <stdlib.h>