From: Azat Khuzhin Date: Wed, 22 Nov 2017 07:33:15 +0000 (+0300) Subject: Add missing includes into openssl-compat.h X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c2c08e0203da93938fe35234fa3a1be4d1c3c2e1;p=libevent Add missing includes into openssl-compat.h Before it depends from the caller #include appropriate headers (at least for OPENSSL_VERSION_NUMBER), but let's make it independent. Fixes: #574 --- diff --git a/bufferevent_openssl.c b/bufferevent_openssl.c index f7f5c0f1..6a803a63 100644 --- a/bufferevent_openssl.c +++ b/bufferevent_openssl.c @@ -63,7 +63,6 @@ #include "bufferevent-internal.h" #include "log-internal.h" -#include #include #include #include "openssl-compat.h" diff --git a/openssl-compat.h b/openssl-compat.h index 0f2dcb75..bffd2593 100644 --- a/openssl-compat.h +++ b/openssl-compat.h @@ -1,6 +1,9 @@ #ifndef OPENSSL_COMPAT_H #define OPENSSL_COMPAT_H +#include +#include "util-internal.h" + #if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER) static inline BIO_METHOD *BIO_meth_new(int type, const char *name) diff --git a/sample/le-proxy.c b/sample/le-proxy.c index c764afc7..4e1cf033 100644 --- a/sample/le-proxy.c +++ b/sample/le-proxy.c @@ -31,7 +31,6 @@ #include #include "util-internal.h" -#include #include #include #include diff --git a/test/regress_ssl.c b/test/regress_ssl.c index 490853fc..5004f7e8 100644 --- a/test/regress_ssl.c +++ b/test/regress_ssl.c @@ -53,7 +53,6 @@ #include "tinytest.h" #include "tinytest_macros.h" -#include #include #include #include "openssl-compat.h"