Skip to content
Snippets Groups Projects
Commit 1cc98ab5 authored by Yang Tse's avatar Yang Tse
Browse files

Unset HAVE_STRUCT_SOCKADDR_STORAGE when using msvc 6.0 with no PSDK

parent a6494602
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment