diff --git a/src/compression.c b/src/compression.c index d476da58e..594399a2f 100644 --- a/src/compression.c +++ b/src/compression.c @@ -41,9 +41,11 @@ #include +#if defined(USE_SLZ) || defined(USE_ZLIB) #ifdef USE_THREAD static HA_SPINLOCK_T comp_pool_lock; #endif +#endif #ifdef USE_ZLIB