Wrap sha2.h include in ifdef.

Fixes build --without-openssl on at least Fedora.
This commit is contained in:
Darren Tucker 2019-11-29 20:21:36 +11:00
parent 443848155f
commit 2ff822eabd

4
hash.c
View File

@ -26,7 +26,9 @@ crypto_hash_sha512(unsigned char *out, const unsigned char *in,
}
#else
#include <sha2.h>
# ifdef HAVE_SHA2_H
# include <sha2.h>
# endif
int
crypto_hash_sha512(unsigned char *out, const unsigned char *in,