Make sure sys/socket.h is included before netinet/in.h (required by
authorDan Fandrich <dan@coneharvesters.com>
Sat, 29 Nov 2008 00:26:07 +0000 (00:26 +0000)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 29 Nov 2008 00:26:07 +0000 (00:26 +0000)
OpenWatcom C)

ares/ares.h
ares/ares_expand_name.c
ares/ares_expand_string.c
ares/ares_mkquery.c
ares/ares_query.c
ares/ares_send.c

index 7ea7054..e2c7f4c 100644 (file)
@@ -51,8 +51,8 @@
 #  include <winsock2.h>
 #  include <ws2tcpip.h>
 #else
-  #include <netinet/in.h>
   #include <sys/socket.h>
+  #include <netinet/in.h>
 #endif
 
 #ifdef  __cplusplus
index dc5b107..8a9d822 100644 (file)
@@ -17,6 +17,9 @@
 
 #include "setup.h"
 
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif
index ead60a4..f2d4f74 100644 (file)
@@ -17,6 +17,9 @@
 
 #include "setup.h"
 
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif
index a9c9187..27ec1ee 100644 (file)
@@ -17,6 +17,9 @@
 
 #include "setup.h"
 
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif
index 14a0d66..0d1f036 100644 (file)
@@ -17,6 +17,9 @@
 
 #include "setup.h"
 
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif
index be5478d..54e4861 100644 (file)
@@ -17,6 +17,9 @@
 
 #include "setup.h"
 
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
 #ifdef HAVE_NETINET_IN_H
 #  include <netinet/in.h>
 #endif