mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
build: Fix Boost Process compatibility with mingw-w64 compiler
Boost 1.71 has a broken compatibility with mingw-w64 compiler due to the added __kernel_entry SAL annotations.
This commit is contained in:
parent
333ec8be82
commit
67669ab425
2 changed files with 10 additions and 0 deletions
|
@ -7,6 +7,11 @@
|
|||
#include <univalue.h>
|
||||
|
||||
#ifdef ENABLE_EXTERNAL_SIGNER
|
||||
#if defined(WIN32) && !defined(__kernel_entry)
|
||||
// A workaround for boost 1.71 incompatibility with mingw-w64 compiler.
|
||||
// For details see https://github.com/bitcoin/bitcoin/pull/22348.
|
||||
#define __kernel_entry
|
||||
#endif
|
||||
#include <boost/process.hpp>
|
||||
#endif // ENABLE_EXTERNAL_SIGNER
|
||||
|
||||
|
|
|
@ -6,6 +6,11 @@
|
|||
#include <util/system.h>
|
||||
|
||||
#ifdef ENABLE_EXTERNAL_SIGNER
|
||||
#if defined(WIN32) && !defined(__kernel_entry)
|
||||
// A workaround for boost 1.71 incompatibility with mingw-w64 compiler.
|
||||
// For details see https://github.com/bitcoin/bitcoin/pull/22348.
|
||||
#define __kernel_entry
|
||||
#endif
|
||||
#include <boost/process.hpp>
|
||||
#endif // ENABLE_EXTERNAL_SIGNER
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue