]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Wrap sha2.h include in ifdef.
authorDarren Tucker <dtucker@dtucker.net>
Fri, 29 Nov 2019 09:21:36 +0000 (20:21 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Fri, 29 Nov 2019 09:21:36 +0000 (20:21 +1100)
Fixes build --without-openssl on at least Fedora.

hash.c

diff --git a/hash.c b/hash.c
index d8b301d9448155008a67a258af11fdd40f853efd..fb81e4786945bdc6f60e0e3ccf3ecb7569b222e8 100644 (file)
--- a/hash.c
+++ b/hash.c
@@ -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,