Document winsock includes better

This commit is contained in:
Nick Mathewson 2018-09-04 10:55:15 -04:00
parent 70c27b7e39
commit 7acb8c8d18
2 changed files with 4 additions and 2 deletions

View File

@ -14,7 +14,7 @@
#define TORTLS_PRIVATE #define TORTLS_PRIVATE
#define TOR_X509_PRIVATE #define TOR_X509_PRIVATE
#ifdef _WIN32 /*wrkard for dtls1.h >= 0.9.8m of "#include <winsock.h>"*/ #ifdef _WIN32
#include <winsock2.h> #include <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif

View File

@ -20,7 +20,9 @@
#define TORTLS_OPENSSL_PRIVATE #define TORTLS_OPENSSL_PRIVATE
#define TOR_X509_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 <winsock2.h>
#include <ws2tcpip.h> #include <ws2tcpip.h>
#endif #endif