BUILD: fix coexistence of openssl and zlib

The crappy zlib and openssl libs both define a free_func as a different typedef.
That's a very clever idea to use such a generic name in general purpose libraries,
really... The zlib one is easier to redefine than openssl's, so let's only fix this
one.
This commit is contained in:
Willy Tarreau 2012-10-26 15:05:35 +02:00
parent 3c7b97b9f9
commit 3476364ce9

View file

@ -12,7 +12,15 @@
*/
#include <stdio.h>
/* Note: the crappy zlib and openssl libs both define the "free_func" type.
* That's a very clever idea to use such a generic name in general purpose
* libraries, really... The zlib one is easier to redefine than openssl's,
* so let's only fix this one.
*/
#define free_func zlib_free_func
#include <zlib.h>
#undef free_func
#include <common/compat.h>