1
0
mirror of https://github.com/eclipse/mosquitto.git synced 2025-05-09 01:01:11 +08:00

Fix build using WITH_TLS=no when the openssl headers aren't available.

This commit is contained in:
Roger A. Light 2020-12-04 23:44:38 +00:00
parent 699654b999
commit c25229c13a
2 changed files with 8 additions and 4 deletions

View File

@ -1,4 +1,6 @@
Build:
- Fix cjson include paths.
- Fix build using WITH_TLS=no when the openssl headers aren't available.
2.0.0 - 2020-12-03

View File

@ -19,10 +19,12 @@ Contributors:
#include "config.h"
#include <errno.h>
#include <openssl/opensslv.h>
#include <openssl/evp.h>
#include <openssl/rand.h>
#include <openssl/buffer.h>
#ifdef WITH_TLS
# include <openssl/opensslv.h>
# include <openssl/evp.h>
# include <openssl/rand.h>
# include <openssl/buffer.h>
#endif
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>