Add basic NetBSD support

This commit is contained in:
Kamil Rytarowski
2016-07-30 11:41:40 +02:00
parent 475c66d2cc
commit 3c4ccd41fa
6 changed files with 33 additions and 11 deletions

View File

@ -88,7 +88,7 @@ uint nv::processorCount() {
return 6;
#elif NV_OS_XBOX
return 3; // or 6?
#elif NV_OS_LINUX // Linux, Solaris, & AIX
#elif NV_OS_LINUX || NV_OS_NETBSD // Linux, Solaris, & AIX
return sysconf(_SC_NPROCESSORS_ONLN);
#elif NV_OS_DARWIN || NV_OS_FREEBSD || NV_OS_OPENBSD
int numCPU;
@ -329,4 +329,4 @@ uint nv::physicalProcessorCount() {
return processorCount();
}
#endif
#endif