From 2ff822eabd7d4461743f22d3b9ba35ab76069df5 Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Fri, 29 Nov 2019 20:21:36 +1100 Subject: [PATCH] Wrap sha2.h include in ifdef. Fixes build --without-openssl on at least Fedora. --- hash.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hash.c b/hash.c index d8b301d94..fb81e4786 100644 --- a/hash.c +++ b/hash.c @@ -26,7 +26,9 @@ crypto_hash_sha512(unsigned char *out, const unsigned char *in, } #else -#include +# ifdef HAVE_SHA2_H +# include +# endif int crypto_hash_sha512(unsigned char *out, const unsigned char *in,