From 6e786165ca08013fe3cfb2641241133563a3f051 Mon Sep 17 00:00:00 2001 From: fanquake Date: Thu, 18 Jul 2024 10:13:50 +0100 Subject: [PATCH] refactor: fix missing includes These cause compile failures with _LIBCPP_REMOVE_TRANSITIVE_INCLUDES. i.e: ```bash In file included from init.cpp:8: ./init.h:46:54: error: no template named 'atomic' in namespace 'std' 46 | bool AppInitBasicSetup(const ArgsManager& args, std::atomic& exit_status); | ~~~~~^ 1 error generated. ``` See: https://libcxx.llvm.org/DesignDocs/HeaderRemovalPolicy.html. --- src/crypto/sha256.cpp | 5 +++-- src/init.h | 4 +--- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/crypto/sha256.cpp b/src/crypto/sha256.cpp index 89d7204808..deedc0a6d1 100644 --- a/src/crypto/sha256.cpp +++ b/src/crypto/sha256.cpp @@ -7,8 +7,9 @@ #include #include -#include -#include +#include +#include +#include #if !defined(DISABLE_OPTIMIZED_SHA256) #include diff --git a/src/init.h b/src/init.h index ead5f5e0d2..40a5da3c0b 100644 --- a/src/init.h +++ b/src/init.h @@ -6,9 +6,7 @@ #ifndef BITCOIN_INIT_H #define BITCOIN_INIT_H -#include -#include -#include +#include //! Default value for -daemon option static constexpr bool DEFAULT_DAEMON = false;