Browse Source

xz: Fix build with --disable-threads.

v5.4
Lasse Collin 2 years ago
parent
commit
5d8f3764ef
  1. 4
      src/xz/hardware.c

4
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
}

Loading…
Cancel
Save