From 21630d5fbce7cdd9660254bdd54c0000322de64e Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Sat, 25 Jul 2015 06:46:40 +0200 Subject: [PATCH] affinity: do not default to win32 --- ccminer.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ccminer.cpp b/ccminer.cpp index 3891bc2..f32be12 100644 --- a/ccminer.cpp +++ b/ccminer.cpp @@ -507,7 +507,7 @@ static void affine_to_cpu_mask(int id, uint8_t mask) { } cpuset_setaffinity(CPU_LEVEL_WHICH, CPU_WHICH_TID, -1, sizeof(cpuset_t), &set); } -#else /* Windows */ +#elif defined(WIN32) /* Windows */ static inline void drop_policy(void) { } static void affine_to_cpu_mask(int id, uint8_t mask) { if (id == -1) @@ -515,6 +515,9 @@ static void affine_to_cpu_mask(int id, uint8_t mask) { else SetThreadAffinityMask(GetCurrentThread(), mask); } +#else /* Martians */ +static inline void drop_policy(void) { } +static void affine_to_cpu_mask(int id, uint8_t mask) { } #endif static bool get_blocktemplate(CURL *curl, struct work *work);