diff --git a/packet.c b/packet.c index 0ae65bd32..dcf35e6e6 100644 --- a/packet.c +++ b/packet.c @@ -61,6 +61,18 @@ #include #include +/* + * Explicitly include OpenSSL before zlib as some versions of OpenSSL have + * "free_func" in their headers, which zlib typedefs. + */ +#ifdef WITH_OPENSSL +# include +# include +# ifdef OPENSSL_HAS_ECC +# include +# endif +#endif + #include #include "xmalloc.h"