crypto/rand/rand_win.c: include "e_os.h" to get the default _WIN32_WINNT
authorRichard Levitte <levitte@openssl.org>
Tue, 2 Apr 2019 09:14:10 +0000 (11:14 +0200)
committerRichard Levitte <levitte@openssl.org>
Tue, 2 Apr 2019 09:30:43 +0000 (11:30 +0200)
This helps decide if the BCrypt API should be used or not.

Fixes #8635

Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/8638)

(cherry picked from commit cc8926ec8fcecae89ceab91ef753de93e49568f9)

crypto/rand/rand_win.c

index d2039eb226ec11d366f2f789671da546efc9a696..581a2f1216b8e0599043c8541acf0f4f6d06e3cd 100644 (file)
@@ -11,6 +11,7 @@
 #include <openssl/rand.h>
 #include "rand_lcl.h"
 #include "internal/rand_int.h"
+#include "e_os.h"                /* For a default _WIN32_WINNT */
 #if defined(OPENSSL_SYS_WINDOWS) || defined(OPENSSL_SYS_WIN32)
 
 # ifndef OPENSSL_RAND_SEED_OS