Commit 7acb8c8d authored by Nick Mathewson's avatar Nick Mathewson 🐕
Browse files

Document winsock includes better

parent 70c27b7e
......@@ -14,7 +14,7 @@
#define TORTLS_PRIVATE
#define TOR_X509_PRIVATE
#ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
#ifdef _WIN32
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
......
......@@ -20,7 +20,9 @@
#define TORTLS_OPENSSL_PRIVATE
#define TOR_X509_PRIVATE
#ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/
#ifdef _WIN32
/* We need to include these here, or else the dtls1.h header will include
* <winsock.h> and mess things up, in at least some openssl versions. */
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment