summaryrefslogtreecommitdiff
path: root/hash.c
diff options
context:
space:
mode:
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c4
1 files changed, 3 insertions, 1 deletions
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,
26} 26}
27 27
28#else 28#else
29#include <sha2.h> 29# ifdef HAVE_SHA2_H
30# include <sha2.h>
31# endif
30 32
31int 33int
32crypto_hash_sha512(unsigned char *out, const unsigned char *in, 34crypto_hash_sha512(unsigned char *out, const unsigned char *in,