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
This commit is contained in:
Wladimir J. van der Laan 2020-01-02 20:54:15 +01:00 committed by fanquake
parent 1a6a534665
commit 112144dc52
No known key found for this signature in database
GPG key ID: 2EEB9F5CC09526C1
2 changed files with 2 additions and 0 deletions

View file

@ -30,6 +30,7 @@
#include <util/validation.h> #include <util/validation.h>
#include <memory> #include <memory>
#include <typeinfo>
#if defined(NDEBUG) #if defined(NDEBUG)
# error "Bitcoin cannot be compiled without assertions." # error "Bitcoin cannot be compiled without assertions."

View file

@ -64,6 +64,7 @@
#endif #endif
#include <thread> #include <thread>
#include <typeinfo>
// Application startup time (used for uptime calculation) // Application startup time (used for uptime calculation)
const int64_t nStartupTime = GetTime(); const int64_t nStartupTime = GetTime();