From f7393146968304425a5de715221092d7a3e69835 Mon Sep 17 00:00:00 2001 From: Matthew Barr Date: Wed, 14 Jun 2017 12:58:51 +1000 Subject: [PATCH] hsbench: cpuset portability --- tools/hsbench/main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/hsbench/main.cpp b/tools/hsbench/main.cpp index b8c7b7dd..9c5fd6cb 100644 --- a/tools/hsbench/main.cpp +++ b/tools/hsbench/main.cpp @@ -125,10 +125,10 @@ public: // Apply processor affinity (if available) to this thread. bool affine(UNUSED int cpu) { #ifdef HAVE_DECL_PTHREAD_SETAFFINITY_NP -#if defined(__linux__) - cpu_set_t cpuset; -#else // BSD +#if defined(__FreeBSD__) cpuset_t cpuset; +#else + cpu_set_t cpuset; #endif CPU_ZERO(&cpuset); assert(cpu >= 0 && cpu < CPU_SETSIZE);