diff --git a/src/backend/cpu/CpuWorker.cpp b/src/backend/cpu/CpuWorker.cpp index bef2e898..65142943 100644 --- a/src/backend/cpu/CpuWorker.cpp +++ b/src/backend/cpu/CpuWorker.cpp @@ -36,7 +36,6 @@ #include "crypto/rx/RxCache.h" #include "crypto/rx/RxDataset.h" #include "crypto/rx/RxVm.h" -#include "crypto/ghostrider/ghostrider.h" #include "net/JobResults.h" @@ -45,6 +44,11 @@ #endif +#ifdef XMRIG_ALGO_GHOSTRIDER +#include "crypto/ghostrider/ghostrider.h" +#endif + + #ifdef XMRIG_FEATURE_BENCHMARK # include "backend/common/benchmark/BenchState.h" #endif