Fix building on NetBSD

This commit is contained in:
Campbell Barton
2019-11-18 16:27:06 +11:00
parent 047d2b0559
commit 99640d0622
2 changed files with 5 additions and 2 deletions

View File

@@ -276,7 +276,10 @@ ifndef NPROCS
ifeq ($(OS), Linux)
NPROCS:=$(shell nproc)
endif
ifneq (,$(filter $(OS),Darwin FreeBSD NetBSD))
ifeq ($(OS), NetBSD)
NPROCS:=$(shell getconf NPROCESSORS_ONLN)
endif
ifneq (,$(filter $(OS),Darwin FreeBSD))
NPROCS:=$(shell sysctl -n hw.ncpu)
endif
endif