aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2009-04-29 14:05:21 +0000
committerYang Tse <yangsita@gmail.com>2009-04-29 14:05:21 +0000
commit06462e8a92dd3f55f6bc03b1c502fcef5dc31608 (patch)
tree2764faa1276969edfec1cc2d86acf6ecba782ef2
parentdbf371344bd5c3cb0a4c0d903f1fb12b224cbab6 (diff)
ares_build.h Windows follow-up
-rw-r--r--ares/ares_build.h.in12
1 files changed, 12 insertions, 0 deletions
diff --git a/ares/ares_build.h.in b/ares/ares_build.h.in
index 21ef2feea..6d2f87ca3 100644
--- a/ares/ares_build.h.in
+++ b/ares/ares_build.h.in
@@ -70,6 +70,18 @@
/* EXTERNAL INTERFACE SETTINGS FOR CONFIGURE CAPABLE SYSTEMS ONLY */
/* ================================================================ */
+/* Configure process defines this to 1 when it finds out that system */
+/* header file ws2tcpip.h must be included by the external interface. */
+#undef CARES_PULL_WS2TCPIP_H
+#ifdef CARES_PULL_WS2TCPIP_H
+# ifndef WIN32_LEAN_AND_MEAN
+# define WIN32_LEAN_AND_MEAN
+# endif
+# include <windows.h>
+# include <winsock2.h>
+# include <ws2tcpip.h>
+#endif
+
/* Configure process defines this to 1 when it finds out that system */
/* header file sys/types.h must be included by the external interface. */
#undef CARES_PULL_SYS_TYPES_H