Browse Source

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.
Con Kolivas 14 years ago
parent
commit
b3edae4f66
1 changed files with 1 additions and 1 deletions
  1. 1 1
      device-cpu.c

+ 1 - 1
device-cpu.c

@@ -39,7 +39,7 @@
 	#include <fcntl.h>
 #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>
 static inline void drop_policy(void)
 {