shithub: moonfish

Download patch

ref: 0313b08e2aea153e086c83a2ef96cef18fc1cb0f
parent: 0f81d1a403ba557b722ada5d460134412b858a72
author: zamfofex <zamfofex@twdb.moe>
date: Sun Dec 24 08:34:53 EST 2023

fix CPU count detection during minification

--- a/search.c
+++ b/search.c
@@ -129,7 +129,7 @@
 #ifdef _WIN32
 		GetSystemInfo(&info);
 		thread_count = info.dwNumberOfProcessors;
-#elif defined(_SC_NPROCESSORS_ONLN)
+#elif defined(_SC_NPROCESSORS_ONLN) || defined(moonfish_mini)
 		thread_count = sysconf(_SC_NPROCESSORS_ONLN);
 #else
 		thread_count = 4;
--