From 0d0e5240755e996976b814f8ae2840a21540a415 Mon Sep 17 00:00:00 2001 From: orbea Date: Fri, 6 Sep 2024 11:13:53 -0700 Subject: [PATCH] httplib.h: support LibreSSL --- httplib.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/httplib.h b/httplib.h index cad7a56b49..3bf7652de2 100644 --- a/httplib.h +++ b/httplib.h @@ -273,7 +273,7 @@ using socket_t = int; #include #include -#if defined(OPENSSL_IS_BORINGSSL) +#if defined(OPENSSL_IS_BORINGSSL) || defined(LIBRESSL_VERSION_NUMBER) #if OPENSSL_VERSION_NUMBER < 0x1010107f #error Please use OpenSSL or a current version of BoringSSL #endif @@ -776,7 +776,7 @@ class ThreadPool final : public TaskQueue { fn(); } -#if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(OPENSSL_IS_BORINGSSL) +#if defined(CPPHTTPLIB_OPENSSL_SUPPORT) && !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER) OPENSSL_thread_stop(); #endif }