From 014f6d2d8dfd4df9baf62031430c441d94ea4b0c Mon Sep 17 00:00:00 2001 From: Eric Voskuil Date: Sun, 26 Jul 2026 11:10:46 -0400 Subject: [PATCH] Posix memory map preclude msvc compile with MANAGE_STAGING. --- include/bitcoin/database/memory/mstage.hpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/bitcoin/database/memory/mstage.hpp b/include/bitcoin/database/memory/mstage.hpp index 61c9f2d47..525bb0d47 100644 --- a/include/bitcoin/database/memory/mstage.hpp +++ b/include/bitcoin/database/memory/mstage.hpp @@ -25,6 +25,11 @@ #define MANAGE_STAGING #endif +#if defined(MANAGE_STAGING) && defined(HAVE_MSC) + // The native windows mapped-file behavior is the model staging emulates. + #error "MANAGE_STAGING is not supported on Windows." +#endif + #if defined(MANAGE_STAGING) /// Reserve inaccessible anonymous address space (MAP_FAILED on failure).