1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-13 10:02:50 -05:00

Fixed build in termux environment, thanks Imran Yusuff.

This commit is contained in:
XMRig
2017-11-24 00:23:04 +03:00
parent 6cc152e26f
commit 47527d48ee
2 changed files with 11 additions and 0 deletions

View File

@@ -70,6 +70,10 @@ void Cpu::setAffinity(int id, uint64_t mask)
sched_setaffinity(0, sizeof(&set), &set);
# endif
} else {
# ifndef __ANDROID__
pthread_setaffinity_np(pthread_self(), sizeof(&set), &set);
# else
sched_setaffinity(gettid(), sizeof(&set), &set);
# endif
}
}