summaryrefslogtreecommitdiff
path: root/ares_parse_srv_reply.c
diff options
context:
space:
mode:
authorGunter Knauf <gk@gknw.de>2009-09-05 20:11:32 (GMT)
committerGunter Knauf <gk@gknw.de>2009-09-05 20:11:32 (GMT)
commitd2f5bde0dba22e0e4cfac898d6e2f8677eefd904 (patch)
tree0cc57a22f41552ffeeea398643f59dd41669c209 /ares_parse_srv_reply.c
parent091393e79ce1f2042c6f8febd70232dbcf3da95e (diff)
downloadc-ares-d2f5bde0dba22e0e4cfac898d6e2f8677eefd904.zip
c-ares-d2f5bde0dba22e0e4cfac898d6e2f8677eefd904.tar.gz
c-ares-d2f5bde0dba22e0e4cfac898d6e2f8677eefd904.tar.bz2
changed includes to match style how we do with all other *.c files.
Diffstat (limited to 'ares_parse_srv_reply.c')
-rw-r--r--ares_parse_srv_reply.c26
1 files changed, 17 insertions, 9 deletions
diff --git a/ares_parse_srv_reply.c b/ares_parse_srv_reply.c
index 5b1e218..82fd8af 100644
--- a/ares_parse_srv_reply.c
+++ b/ares_parse_srv_reply.c
@@ -20,17 +20,25 @@
#include "setup.h"
-#if defined(WIN32) && !defined(WATT32)
-#include "nameser.h"
+#ifdef HAVE_SYS_SOCKET_H
+# include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+# include <netinet/in.h>
+#endif
+#ifdef HAVE_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>
#else
-#include <sys/socket.h>
-#include <netinet/in.h>
-#include <arpa/inet.h>
-#include <netdb.h>
-#include <arpa/nameser.h>
-#ifdef HAVE_ARPA_NAMESER_COMPAT_H
-#include <arpa/nameser_compat.h>
+# include "nameser.h"
#endif
+#ifdef HAVE_ARPA_NAMESER_COMPAT_H
+# include <arpa/nameser_compat.h>
#endif
#include <stdlib.h>