From: Matthew Barr Date: Wed, 14 Jun 2017 02:58:51 +0000 (+1000) Subject: hsbench: cpuset portability X-Git-Tag: v4.5.1^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7393146968304425a5de715221092d7a3e69835;p=thirdparty%2Fvectorscan.git hsbench: cpuset portability --- 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);