From: Lasse Collin Date: Thu, 14 Apr 2022 17:53:16 +0000 (+0300) Subject: xz: Fix build with --disable-threads. X-Git-Tag: v5.3.3alpha~76 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5d8f3764ef43c35910e6d7003c0900a961ef6544;p=thirdparty%2Fxz.git xz: Fix build with --disable-threads. --- diff --git a/src/xz/hardware.c b/src/xz/hardware.c index 3d10edc9..986d0c1b 100644 --- a/src/xz/hardware.c +++ b/src/xz/hardware.c @@ -91,7 +91,11 @@ hardware_threads_get(void) extern bool hardware_threads_is_mt(void) { +#ifdef MYTHREAD_ENABLED return threads_max > 1 || threads_are_automatic; +#else + return false; +#endif }