examples/performance-thread: fix build on FreeBSD 10.0
authorBruce Richardson <bruce.richardson@intel.com>
Fri, 28 Apr 2017 10:18:15 +0000 (11:18 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 14:10:03 +0000 (16:10 +0200)
commitb7162fee8811461fb87dd9c5b843b3d1ba283e5c
tree6a7af1595c86631e0b7df98df6323cba38566d90
parenta8c6a1ae1240639de590714e0d945f6ab03f0027
examples/performance-thread: fix build on FreeBSD 10.0

While later releases in the FreeBSD 10 series have a CPU_COUNT macro
defined, FreeBSD 10.0 and 10.1 do not have this macro. Therefore we provide
a basic fallback implementation of the macro for platforms where it is not
defined.

Fixes: 433ba6228f9a ("examples/performance-thread: add pthread_shim app")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
examples/performance-thread/pthread_shim/pthread_shim.c