mirror of
https://git.tukaani.org/xz.git
synced 2024-04-04 12:36:23 +02:00
xz: Fix build with --disable-threads.
This commit is contained in:
parent
1d59289727
commit
5d8f3764ef
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue