]> granicus.if.org Git - curl/commitdiff
changed includes to match style how we do with all other *.c files.
authorGunter Knauf <gk@gknw.de>
Sat, 5 Sep 2009 20:11:32 +0000 (20:11 +0000)
committerGunter Knauf <gk@gknw.de>
Sat, 5 Sep 2009 20:11:32 +0000 (20:11 +0000)
ares/ares_parse_srv_reply.c

index 5b1e218d40f89dec13e91bb2fb0f70871bacd299..82fd8afa93d149a8b940df33aef8d39d6698c4e3 100644 (file)
 
 #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>