1
0
mirror of https://github.com/GOSTSec/sgminer synced 2025-01-25 22:14:36 +00:00

Merge pull request #159 from pshep/master

Add check for CPU affinity ability. Irrelevant when not supporting CPU mining any more but a harmless patch and perhaps affinity may want to be used by some other code.
This commit is contained in:
Con Kolivas 2012-03-28 04:30:39 -07:00
commit b3edae4f66

View File

@ -39,7 +39,7 @@
#include <fcntl.h> #include <fcntl.h>
#endif #endif
#ifdef __linux /* Linux specific policy and affinity management */ #if defined(__linux) && defined(cpu_set_t) /* Linux specific policy and affinity management */
#include <sched.h> #include <sched.h>
static inline void drop_policy(void) static inline void drop_policy(void)
{ {