projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a649460
)
Unset HAVE_STRUCT_SOCKADDR_STORAGE when using msvc 6.0 with no PSDK
author
Yang Tse
<yangsita@gmail.com>
Fri, 9 Dec 2005 15:19:07 +0000
(15:19 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Fri, 9 Dec 2005 15:19:07 +0000
(15:19 +0000)
lib/setup.h
patch
|
blob
|
history
diff --git
a/lib/setup.h
b/lib/setup.h
index
15c5a12
..
8f19dde
100644
(file)
--- 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