diff --git a/include/sha2.h b/include/sha2.h index 3c10be8958c..e67a4100ff2 100644 --- a/include/sha2.h +++ b/include/sha2.h @@ -18,11 +18,16 @@ #include -# ifndef HAVE_YASSL -# include +#if defined(HAVE_YASSL) || defined(HAVE_OPENSSL) + +# ifdef HAVE_STDDEF_H +# include # endif -# ifdef HAVE_YASSL +# ifndef HAVE_YASSL +# include + +# else #include "../extra/yassl/taocrypt/include/sha.hpp" @@ -63,4 +68,5 @@ GEN_YASSL_SHA2_BRIDGE(224); # endif /* HAVE_YASSL */ +#endif /* HAVE_OPENSSL || HAVE_YASSL */ #endif /* included_sha2_h */