From a64cc241699a90e24bbc58ef5f05647e8f361d49 Mon Sep 17 00:00:00 2001 From: Dmitry Marakasov Date: Thu, 16 Feb 2017 18:21:39 +0400 Subject: [PATCH] Use HW_NCPU on FreeBSD as well --- 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