From 242ebefdb721e29f117868eceaac95f0d463b536 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?=
 =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= <leo@yuriev.ru>
Date: Sun, 14 Jul 2024 23:42:24 +0300
Subject: [PATCH] =?UTF-8?q?mdbx-windows:=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2?=
 =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D1=82=D0=B5=D1=80?=
 =?UTF-8?q?=D1=8F=D0=BD=D0=BD=D0=BE=D0=B3=D0=BE=20`#include=20<wincrypt.h>?=
 =?UTF-8?q?`.?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/osal.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/osal.c b/src/osal.c
index 1ae7dcf9..18edf932 100644
--- a/src/osal.c
+++ b/src/osal.c
@@ -3513,6 +3513,10 @@ __cold int mdbx_get_sysraminfo(intptr_t *page_size, intptr_t *total_pages,
 #include <sys/random.h>
 #endif /* sys/random.h */
 
+#if defined(_WIN32) || defined(_WIN64)
+#include <wincrypt.h>
+#endif /* Windows */
+
 MDBX_INTERNAL bin128_t osal_guid(const MDBX_env *env) {
   struct {
     uint64_t begin, end, cputime;