From: Darren Tucker Date: Fri, 29 Nov 2019 09:21:36 +0000 (+1100) Subject: Wrap sha2.h include in ifdef. X-Git-Tag: V_8_2_P1~222 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ff822eabd7d4461743f22d3b9ba35ab76069df5;p=thirdparty%2Fopenssh-portable.git Wrap sha2.h include in ifdef. Fixes build --without-openssl on at least Fedora. --- 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,