Skip to content

Commit

Permalink
Windows: speculative build fix for TLSSocket
Browse files Browse the repository at this point in the history
  • Loading branch information
snej committed Sep 7, 2023
1 parent 0e85615 commit 9e3a515
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/mbedtls/TLSContext.hh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,15 @@
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

#pragma once

#if defined(_WIN32)
# if !defined(_CRT_SECURE_NO_DEPRECATE)
# define _CRT_SECURE_NO_DEPRECATE
# endif
# include <winsock2.h>
# include <ws2tcpip.h>
#endif

#include <mbedtls/base64.h>
#include <mbedtls/ctr_drbg.h>
#include <mbedtls/debug.h>
Expand Down

0 comments on commit 9e3a515

Please sign in to comment.