From cf45a56631cd8e72640e534a55401b5e68d194f6 Mon Sep 17 00:00:00 2001
From: Paul Bakker
Date: Fri, 2 Nov 2012 10:59:36 +0000
Subject: [PATCH] Fixes for MSVC6 (cherry picked from commit
7a2538ee38f6fde58bc6d3eb45624a5ac8eeaa30)
---
ChangeLog | 1 +
library/entropy_poll.c | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/ChangeLog b/ChangeLog
index c86e441e02..bafc92a350 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -18,6 +18,7 @@ Bugfix
* Memory leak when using RSA_PKCS_V21 operations fixed
* Handle encryption with private key and decryption with public key as per
RFC 2313
+ * Fixes for MSVC6
Security
* Fixed potential memory zeroization on miscrafted RSA key (found by Eloi
diff --git a/library/entropy_poll.c b/library/entropy_poll.c
index a0c9b7bc07..b5d9f787c0 100644
--- a/library/entropy_poll.c
+++ b/library/entropy_poll.c
@@ -40,10 +40,10 @@
#if !defined(POLARSSL_NO_PLATFORM_ENTROPY)
#if defined(_WIN32)
-#include
#if !defined(_WIN32_WINNT)
#define _WIN32_WINNT 0x0400
#endif
+#include
#include
int platform_entropy_poll( void *data, unsigned char *output, size_t len,