]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
xz: Fix build with --disable-threads.
authorLasse Collin <lasse.collin@tukaani.org>
Thu, 14 Apr 2022 17:53:16 +0000 (20:53 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Thu, 14 Apr 2022 17:53:16 +0000 (20:53 +0300)
src/xz/hardware.c

index 3d10edc91b8715858caf289d01d89e009eb29a76..986d0c1b7c8d6517d9ad1a9589536dadb77fb827 100644 (file)
@@ -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
 }