diff options
author | Wladimir J. van der Laan <laanwj@protonmail.com> | 2020-01-02 20:54:15 +0100 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2020-01-05 07:30:49 +0800 |
commit | 112144dc524b6f4df5c88ab067e899d858f6461d (patch) | |
tree | c081d0cfa320da22fff889dec58ed7dbc08883b6 | |
parent | 1a6a534665be410988785b0f2e09ef001a612d5c (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.
Github-Pull: #17762
Rebased-From: 4bdd68f301a9cee3360deafc7531c638e923226b
-rw-r--r-- | src/net_processing.cpp | 1 | ||||
-rw-r--r-- | src/util/system.cpp | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/net_processing.cpp b/src/net_processing.cpp index b57cb2f303..3d0efa041d 100644 --- a/src/net_processing.cpp +++ b/src/net_processing.cpp @@ -30,6 +30,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 3820006072..bbd7c9940a 100644 --- a/src/util/system.cpp +++ b/src/util/system.cpp @@ -64,6 +64,7 @@ #endif #include <thread> +#include <typeinfo> // Application startup time (used for uptime calculation) const int64_t nStartupTime = GetTime(); |