From 2189fe94ed0d63c444e8ba3bdf93b3e0eb2c1ce1 Mon Sep 17 00:00:00 2001 From: XMRig Date: Mon, 17 Sep 2018 06:37:53 +0300 Subject: [PATCH] Fix Linux build. --- CMakeLists.txt | 2 +- src/common/net/Client.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8d38b1a04..317724e3f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,7 +156,7 @@ else() src/Mem_unix.cpp ) - set(EXTRA_LIBS pthread rt) + set(EXTRA_LIBS pthread rt dl) endif() if (CMAKE_SYSTEM_NAME STREQUAL FreeBSD) diff --git a/src/common/net/Client.cpp b/src/common/net/Client.cpp index b039727de..3a93789b6 100644 --- a/src/common/net/Client.cpp +++ b/src/common/net/Client.cpp @@ -414,7 +414,7 @@ bool Client::send(BIO *bio) LOG_DEBUG_ERR("[%s] send failed, invalid state: %d", m_pool.url(), m_state); } - BIO_reset(bio); + (void) BIO_reset(bio); return result; # else