]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: remove dependency to zlib.h
authorWilliam Lallemand <wlallemand@exceliance.fr>
Wed, 31 Oct 2012 10:19:18 +0000 (11:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 5 Nov 2012 09:23:16 +0000 (10:23 +0100)
commit08289f12f9a13ea06cf4a16a1211e82e003af218
tree91c9df96076801fc5a5f21ec47baf1ab2d7d5b5b
parent1c2d622d82ca50046b40ab80d289a7183c03761f
BUILD: remove dependency to zlib.h

The build was dependent of the zlib.h header, regardless of the USE_ZLIB
option. The fix consists of several #ifdef in the source code.

It removes the overhead of the zstream structure in the session when you
don't use the option.
include/types/compression.h
include/types/session.h
src/compression.c