Commit 195bd57a383c500b4546f0e5d8d74283d0a53fc1

Paul Sheppard 2012-03-23T16:21:01

Small change to help arch's without processor affinity

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/device-cpu.c b/device-cpu.c
index c99cdfb..4cc01a8 100644
--- a/device-cpu.c
+++ b/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)
 {