From eaf81bc4b41415b182c860731faefd96a7009000 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Mon, 21 Nov 2016 20:53:22 +0400 Subject: [PATCH] Fix processor count detection on FreeBSD --- src/nvthread/nvthread.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/nvthread/nvthread.cpp b/src/nvthread/nvthread.cpp index 498c938..38b5a86 100644 --- a/src/nvthread/nvthread.cpp +++ b/src/nvthread/nvthread.cpp @@ -1,4 +1,4 @@ -// This code is in the public domain -- Ignacio Castaño +// This code is in the public domain -- Ignacio Castaño #include "nvthread.h" @@ -98,7 +98,7 @@ uint nv::processorCount() { // set the mib for hw.ncpu mib[0] = CTL_HW; -#if NV_OS_OPENBSD +#if NV_OS_OPENBSD || NV_OS_FREEBSD mib[1] = HW_NCPU; #else mib[1] = HW_AVAILCPU; @@ -329,4 +329,4 @@ uint nv::physicalProcessorCount() { return processorCount(); } -#endif +#endif