]> granicus.if.org Git - curl/commitdiff
warnless: header inclusion fix
authorYang Tse <yangsita@gmail.com>
Fri, 27 May 2011 04:56:56 +0000 (06:56 +0200)
committerYang Tse <yangsita@gmail.com>
Fri, 27 May 2011 04:56:56 +0000 (06:56 +0200)
lib/warnless.c

index 0f7814b274ec4fe41bd0b901843ed063607004f1..8a2211019ae1dbbc26bec3928bbda8d502b42621 100644 (file)
 
 #include "setup.h"
 
+#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_WARNLESS_C 1
 
 #include "warnless.h"