Fixed compilation error

pull/271/head
SChernykh 2023-04-19 21:50:57 +02:00
parent 7a83fd2f30
commit 5f18eed14d
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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 {

View File

@ -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); }