diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2022-04-14 20:53:16 +0300 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2022-04-14 20:53:16 +0300 |
commit | 5d8f3764ef43c35910e6d7003c0900a961ef6544 (patch) | |
tree | 35e83f8341a3b55b2bd4c25be53c178edd9dfb44 /src/xz/hardware.c | |
parent | xz: Change the cap of the default -T0 memlimit for 32-bit xz. (diff) | |
download | xz-5d8f3764ef43c35910e6d7003c0900a961ef6544.tar.xz |
xz: Fix build with --disable-threads.
Diffstat (limited to 'src/xz/hardware.c')
-rw-r--r-- | src/xz/hardware.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 } |