1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

devel/libgit2: fix linking with libressl

Patch upstream:
https://github.com/libgit2/libgit2/pull/6157

PR:		260216
Reported by:	lysfjord.daniel@smokepit.net
This commit is contained in:
Matthias Fechner 2022-01-06 09:19:44 +01:00
parent 72862a3740
commit 7679b30c46

View File

@ -0,0 +1,11 @@
--- deps/ntlmclient/crypt_openssl.c.orig 2022-01-06 08:12:56 UTC
+++ deps/ntlmclient/crypt_openssl.c
@@ -44,7 +44,7 @@ static inline void HMAC_CTX_free(HMAC_CTX *ctx)
#endif
-#if OPENSSL_VERSION_NUMBER >= 0x10100000L || defined(CRYPT_OPENSSL_DYNAMIC)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L && !LIBRESSL_VERSION_NUMBER) || defined(CRYPT_OPENSSL_DYNAMIC)
static inline void HMAC_CTX_cleanup(HMAC_CTX *ctx)
{