]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: comp: fix compilation warning compiling without compression.
authorEmeric Brun <ebrun@haproxy.com>
Tue, 7 Nov 2017 10:57:54 +0000 (11:57 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 7 Nov 2017 13:48:13 +0000 (14:48 +0100)
This is specific to threads, no backport is needed.

src/compression.c

index d476da58ee23aff8c988f6399da0ee9a71d62356..594399a2ffe02512204c05e75fdd9b6fc141d38c 100644 (file)
 #include <proto/stream.h>
 
 
+#if defined(USE_SLZ) || defined(USE_ZLIB)
 #ifdef USE_THREAD
 static HA_SPINLOCK_T comp_pool_lock;
 #endif
+#endif
 
 #ifdef USE_ZLIB