From fd34b17f9093293e95ea881849c7c3f37f5dc043 Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 5 Mar 2022 10:12:26 +0100 Subject: [PATCH] zos: fix build breakage (#3513) Introduced earlier today in commit f250c6c7. _SC_NPROCESSORS_ONLN does not seem to be defined on that platform. --- src/unix/core.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/unix/core.c b/src/unix/core.c index c0448b31e..459e3c917 100644 --- a/src/unix/core.c +++ b/src/unix/core.c @@ -1671,6 +1671,8 @@ unsigned int uv_available_parallelism(void) { rc = 1; return (unsigned) rc; +#elif defined(__MVS__) + return 1; /* TODO(bnoordhuis) Read from CSD_NUMBER_ONLINE_CPUS? */ #else /* __linux__ */ long rc;