projects
/
platform
/
upstream
/
c-ares.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
22a5210
)
ares_nowarn: header inclusion fix
author
Yang Tse
<yangsita@gmail.com>
Fri, 27 May 2011 04:55:50 +0000
(06:55 +0200)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 27 May 2011 04:55:50 +0000
(06:55 +0200)
ares_nowarn.c
patch
|
blob
|
history
diff --git
a/ares_nowarn.c
b/ares_nowarn.c
index 719bec12f2b91cba6a8229e4e2bd417e4386a04a..640412e9aa976dc1c978ed675332e70f9b84e950 100644
(file)
--- a/
ares_nowarn.c
+++ b/
ares_nowarn.c
@@
-21,6
+21,20
@@
# 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"