summaryrefslogtreecommitdiffstats
path: root/packet.c
diff options
context:
space:
mode:
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/packet.c b/packet.c
index 0ae65bd3..dcf35e6e 100644
--- a/packet.c
+++ b/packet.c
@@ -61,6 +61,18 @@
#include <signal.h>
#include <time.h>
+/*
+ * Explicitly include OpenSSL before zlib as some versions of OpenSSL have
+ * "free_func" in their headers, which zlib typedefs.
+ */
+#ifdef WITH_OPENSSL
+# include <openssl/bn.h>
+# include <openssl/evp.h>
+# ifdef OPENSSL_HAS_ECC
+# include <openssl/ec.h>
+# endif
+#endif
+
#include <zlib.h>
#include "xmalloc.h"