+2021-10-15 Paul Eggert <eggert@cs.ucla.edu>
+
+ nproc: port better to macOS 10.14
+ * lib/nproc.c (num_processors_ignoring_omp)
+ [HAVE_SYSCTL && !defined __GLIBC__ && defined HW_NCPU]:
+ Do not use a const mib, as macOS 10.14 rejects this.
+
2021-10-13 Paul Eggert <eggert@cs.ucla.edu>
sigsegv: fix quoting problem
NPROC_CURRENT and NPROC_ALL. */
#if HAVE_SYSCTL && ! defined __GLIBC__ && defined HW_NCPU
- { /* This works on Mac OS X, FreeBSD, NetBSD, OpenBSD. */
+ { /* This works on macOS, FreeBSD, NetBSD, OpenBSD.
+ macOS 10.14 does not allow mib to be const. */
int nprocs;
size_t len = sizeof (nprocs);
- static int const mib[][2] = {
+ static int mib[][2] = {
# ifdef HW_NCPUONLINE
{ CTL_HW, HW_NCPUONLINE },
# endif