CLEANUP: compression: don't allocate DEFAULT_MAXZLIBMEM without USE_ZLIB

It's pointless to reserve this amount of memory when zlib is not used.
Adding the condition will make build scripts easier to manage. This may
be backported to 1.6.
This commit is contained in:
Willy Tarreau 2015-11-26 16:34:56 +01:00
parent f25b3573d6
commit ed9dddd237

View File

@ -134,7 +134,7 @@ struct global global = {
.nbproc = 1,
.req_count = 0,
.logsrvs = LIST_HEAD_INIT(global.logsrvs),
#ifdef DEFAULT_MAXZLIBMEM
#if defined(USE_ZLIB) && defined(DEFAULT_MAXZLIBMEM)
.maxzlibmem = DEFAULT_MAXZLIBMEM * 1024U * 1024U,
#else
.maxzlibmem = 0,