]> Savannah Git Hosting - gnulib.git/commit
nproc: port better to OpenBSD
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Oct 2021 17:43:47 +0000 (10:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 10 Oct 2021 17:44:37 +0000 (10:44 -0700)
commit7fc3219bcc2bf448ef26cf30a2e5770fdda3f2b4
tree87f870001ecc26acc22028931cdc67a7269d4fe5
parentdd0af10fa597a95ffe5f4f110ef5edefc2f680bc
nproc: port better to OpenBSD

Problem reported by Omar Polo in:
https://lists.gnu.org/r/emacs-devel/2021-10/msg00692.html
* lib/nproc.c (num_processors_ignoring_omp): Prefer HW_NCPUONLINE
to HW_NCPU, for OpenBSD.  Also, make mib const.
ChangeLog
lib/nproc.c