mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-27 12:56:09 -04:00
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:
parent
3c7b97b9f9
commit
3476364ce9
1 changed files with 8 additions and 0 deletions
|
|
@ -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>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue