mirror of
https://github.com/xmrig/xmrig.git
synced 2024-11-16 15:57:38 +00:00
Fixes.
This commit is contained in:
parent
faf14f5e5a
commit
1587fb27d2
2 changed files with 1 additions and 4 deletions
|
@ -84,6 +84,7 @@ if (WIN32)
|
||||||
src/net/Network_win.cpp
|
src/net/Network_win.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
|
add_definitions(/DWIN32)
|
||||||
set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv)
|
set(EXTRA_LIBS ws2_32 psapi iphlpapi userenv)
|
||||||
elseif (APPLE)
|
elseif (APPLE)
|
||||||
set(SOURCES_OS
|
set(SOURCES_OS
|
||||||
|
|
|
@ -42,10 +42,6 @@ void Cpu::init()
|
||||||
|
|
||||||
void Cpu::setAffinity(int id, unsigned long mask)
|
void Cpu::setAffinity(int id, unsigned long mask)
|
||||||
{
|
{
|
||||||
if (id == -1) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
cpu_set_t set;
|
cpu_set_t set;
|
||||||
CPU_ZERO(&set);
|
CPU_ZERO(&set);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue