aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2005-12-09 15:19:07 +0000
committerYang Tse <yangsita@gmail.com>2005-12-09 15:19:07 +0000
commit1cc98ab50faeba573d7141c26b71469ba72c6625 (patch)
tree18df0f78654896a93ebe5ff80e613c92210e69e2
parenta6494602fdd3eab7ec9649368c99b4a37a6bafa2 (diff)
Unset HAVE_STRUCT_SOCKADDR_STORAGE when using msvc 6.0 with no PSDK
-rw-r--r--lib/setup.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/setup.h b/lib/setup.h
index 15c5a126d..8f19dde3f 100644
--- a/lib/setup.h
+++ b/lib/setup.h
@@ -275,6 +275,18 @@ typedef int curl_socket_t;
#define CURL_NO__BEGINTHREADEX
#endif
+/*
+ * msvc 6.0 does not have struct sockaddr_storage and
+ * does not define IPPROTO_ESP in winsock2.h. But both
+ * are available if PSDK is properly installed.
+ */
+
+#ifdef _MSC_VER
+#if !defined(HAVE_WINSOCK2_H) || ((_MSC_VER < 1300) && !defined(IPPROTO_ESP))
+#undef HAVE_STRUCT_SOCKADDR_STORAGE
+#endif
+#endif
+
#ifdef mpeix
#define IOCTL_3_ARGS
#endif