From: Willy Tarreau Date: Mon, 12 Nov 2012 14:52:53 +0000 (+0100) Subject: MINOR: build: allow packagers to specify the default maxzlibmem X-Git-Tag: v1.5-dev13~38 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=96aa6b32d7ad2be92b69badcdf693e0815b53387;p=thirdparty%2Fhaproxy.git MINOR: build: allow packagers to specify the default maxzlibmem This is done by passing the default value to DEFAULT_MAXZLIBMEM in megs. --- diff --git a/src/haproxy.c b/src/haproxy.c index 32db281292..5e6ee40142 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -114,7 +114,11 @@ int relative_pid = 1; /* process id starting at 1 */ struct global global = { .req_count = 0, .logsrvs = LIST_HEAD_INIT(global.logsrvs), +#ifdef DEFAULT_MAXZLIBMEM + .maxzlibmem = DEFAULT_MAXZLIBMEM, +#else .maxzlibmem = 0, +#endif .comp_rate_lim = 0, .unix_bind = { .ux = {