From 5d8f3764ef43c35910e6d7003c0900a961ef6544 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Thu, 14 Apr 2022 20:53:16 +0300 Subject: [PATCH] xz: Fix build with --disable-threads. --- src/xz/hardware.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xz/hardware.c b/src/xz/hardware.c index 3d10edc..986d0c1 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 }