ares_nowarn: header inclusion fix
authorYang Tse <yangsita@gmail.com>
Fri, 27 May 2011 04:55:50 +0000 (06:55 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 27 May 2011 04:55:50 +0000 (06:55 +0200)
ares_nowarn.c

index 719bec1..640412e 100644 (file)
 #  include <assert.h>
 #endif
 
+#if defined(__INTEL_COMPILER) && defined(__unix__)
+
+#ifdef HAVE_SYS_SOCKET_H
+#  include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#  include <netinet/in.h>
+#endif
+#ifdef HAVE_ARPA_INET_H
+#  include <arpa/inet.h>
+#endif
+
+#endif /* __INTEL_COMPILER && __unix__ */
+
 #define BUILDING_ARES_NOWARN_C 1
 
 #include "ares_nowarn.h"