zos: fix build breakage (#3513)

Introduced earlier today in commit f250c6c7. _SC_NPROCESSORS_ONLN does
not seem to be defined on that platform.
This commit is contained in:
Ben Noordhuis 2022-03-05 10:12:26 +01:00 committed by GitHub
parent 60fbcad9ac
commit fd34b17f90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;