mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-08 03:44:22 -04:00
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 (cherry picked from commit c2c08e0203da93938fe35234fa3a1be4d1c3c2e1)
This commit is contained in:
parent
27b59783f3
commit
01bc36c1f4
@ -63,7 +63,6 @@
|
||||
#include "bufferevent-internal.h"
|
||||
#include "log-internal.h"
|
||||
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
#include "openssl-compat.h"
|
||||
|
@ -1,6 +1,9 @@
|
||||
#ifndef OPENSSL_COMPAT_H
|
||||
#define OPENSSL_COMPAT_H
|
||||
|
||||
#include <openssl/bio.h>
|
||||
#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)
|
||||
|
@ -31,7 +31,6 @@
|
||||
#include <event2/util.h>
|
||||
|
||||
#include "util-internal.h"
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/ssl.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/rand.h>
|
||||
|
@ -53,7 +53,6 @@
|
||||
#include "tinytest.h"
|
||||
#include "tinytest_macros.h"
|
||||
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/err.h>
|
||||
#include <openssl/pem.h>
|
||||
#include "openssl-compat.h"
|
||||
|
Loading…
x
Reference in New Issue
Block a user