aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@protonmail.com>2020-01-02 20:54:15 +0100
committerWladimir J. van der Laan <laanwj@protonmail.com>2020-01-02 20:54:15 +0100
commit4bdd68f301a9cee3360deafc7531c638e923226b (patch)
tree48dbc94560af6821dbd71101487e1924bf06c52f
parent4d88c3dcb61e7c075ed3dd442044e0eff4e3c8de (diff)
Add missing typeinfo includes
The use of `typeid()` for logging exception types requires this include according to https://en.cppreference.com/w/cpp/language/typeid.
-rw-r--r--src/net_processing.cpp1
-rw-r--r--src/util/system.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp
index be786f147d..fba6825a9a 100644
--- a/src/net_processing.cpp
+++ b/src/net_processing.cpp
@@ -29,6 +29,7 @@
#include <util/validation.h>
#include <memory>
+#include <typeinfo>
#if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions."
diff --git a/src/util/system.cpp b/src/util/system.cpp
index 563ff6a54b..f234a020da 100644
--- a/src/util/system.cpp
+++ b/src/util/system.cpp
@@ -63,6 +63,7 @@
#endif
#include <thread>
+#include <typeinfo>
#include <univalue.h>
// Application startup time (used for uptime calculation)