Wrap sha2.h include in ifdef.
Fixes build --without-openssl on at least Fedora.
This commit is contained in:
parent
443848155f
commit
2ff822eabd
4
hash.c
4
hash.c
|
@ -26,7 +26,9 @@ crypto_hash_sha512(unsigned char *out, const unsigned char *in,
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
#include <sha2.h>
|
# ifdef HAVE_SHA2_H
|
||||||
|
# include <sha2.h>
|
||||||
|
# endif
|
||||||
|
|
||||||
int
|
int
|
||||||
crypto_hash_sha512(unsigned char *out, const unsigned char *in,
|
crypto_hash_sha512(unsigned char *out, const unsigned char *in,
|
||||||
|
|
Loading…
Reference in New Issue