diff --git a/src/backend/cpu/CpuWorker.cpp b/src/backend/cpu/CpuWorker.cpp index 95c434f3..ee0e52a5 100644 --- a/src/backend/cpu/CpuWorker.cpp +++ b/src/backend/cpu/CpuWorker.cpp @@ -271,7 +271,7 @@ void xmrig::CpuWorker::start() } defyx2_calculate_hash_next(m_vm, tempHash, m_job.blob(), job.size(), m_hash); - } else { + } else { if (first) { first = false; randomx_calculate_hash_first(m_vm, tempHash, m_job.blob(), job.size()); @@ -283,8 +283,8 @@ void xmrig::CpuWorker::start() randomx_calculate_hash_next(m_vm, tempHash, m_job.blob(), job.size(), m_hash); } - } - else + } + } else # endif { # ifdef XMRIG_ALGO_ASTROBWT diff --git a/src/crypto/randomx/randomx.cpp b/src/crypto/randomx/randomx.cpp index 0e0defda..43d257b9 100644 --- a/src/crypto/randomx/randomx.cpp +++ b/src/crypto/randomx/randomx.cpp @@ -47,6 +47,12 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. #include +extern "C" { +#include "defyx/yescrypt.h" +#include "panthera/yespower.h" +#include "panthera/KangarooTwelve.h" +} + RandomX_ConfigurationWownero::RandomX_ConfigurationWownero() { ArgonSalt = "RandomWOW\x01";