From 5f18eed14da3e9e301037ed75865cd6b88a4c29c Mon Sep 17 00:00:00 2001 From: SChernykh Date: Wed, 19 Apr 2023 21:50:57 +0200 Subject: [PATCH] Fixed compilation error --- src/console_commands.cpp | 2 -- src/log.cpp | 2 +- src/uv_util.h | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/console_commands.cpp b/src/console_commands.cpp index 79d55f8..cacf3b6 100644 --- a/src/console_commands.cpp +++ b/src/console_commands.cpp @@ -34,8 +34,6 @@ static constexpr int DEFAULT_BACKLOG = 1; namespace p2pool { -extern const uv_handle_type stdin_type; - ConsoleCommands::ConsoleCommands(p2pool* pool) : TCPServer(DEFAULT_BACKLOG, ConsoleClient::allocate) , m_pool(pool) diff --git a/src/log.cpp b/src/log.cpp index 2941361..7f702b7 100644 --- a/src/log.cpp +++ b/src/log.cpp @@ -32,7 +32,7 @@ static constexpr char log_file_name[] = "p2pool.log"; namespace p2pool { -extern const uv_handle_type stdin_type = uv_guess_handle(0); +const uv_handle_type stdin_type = uv_guess_handle(0); namespace log { diff --git a/src/uv_util.h b/src/uv_util.h index e4e6f0c..1709e8c 100644 --- a/src/uv_util.h +++ b/src/uv_util.h @@ -25,6 +25,8 @@ static_assert(sizeof(in_addr) == 4, "struct in_addr has invalid size"); namespace p2pool { +extern const uv_handle_type stdin_type; + struct MutexLock : public nocopy_nomove { explicit FORCEINLINE MutexLock(uv_mutex_t& handle) : m_handle(&handle) { uv_mutex_lock(&handle); }