diff options
author | Chun Kuan Lee <ken2812221@gmail.com> | 2018-05-15 09:27:14 +0000 |
---|---|---|
committer | Chun Kuan Lee <ken2812221@gmail.com> | 2018-05-17 08:13:54 +0000 |
commit | 84f41946b9026e8bf7bc44ed848dfb945394b693 (patch) | |
tree | d26359717e80bbb387eb47069a6cf66afa6abe28 /src | |
parent | 3b84ebb5bc0d55d488ce2626ac3232729535eca8 (diff) |
break circular dependency: random/sync -> util -> random/sync
Diffstat (limited to 'src')
-rw-r--r-- | src/random.cpp | 5 | ||||
-rw-r--r-- | src/sync.cpp | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/random.cpp b/src/random.cpp index 4ba86e4e7a..491272d5f3 100644 --- a/src/random.cpp +++ b/src/random.cpp @@ -11,14 +11,15 @@ #include <compat.h> // for Windows API #include <wincrypt.h> #endif -#include <util.h> // for LogPrint() -#include <utilstrencodings.h> // for GetTime() +#include <logging.h> // for LogPrint() +#include <utiltime.h> // for GetTime() #include <stdlib.h> #include <chrono> #include <thread> #ifndef WIN32 +#include <fcntl.h> #include <sys/time.h> #endif diff --git a/src/sync.cpp b/src/sync.cpp index 6f21d498ee..1f27aeb40b 100644 --- a/src/sync.cpp +++ b/src/sync.cpp @@ -4,13 +4,15 @@ #include <sync.h> -#include <memory> -#include <set> -#include <util.h> +#include <logging.h> #include <utilstrencodings.h> #include <stdio.h> +#include <map> +#include <memory> +#include <set> + #ifdef DEBUG_LOCKCONTENTION #if !defined(HAVE_THREAD_LOCAL) static_assert(false, "thread_local is not supported"); |