diff --git a/compat/arc4random.c b/compat/arc4random.c index 27a626b7b..2c859f184 100644 --- a/compat/arc4random.c +++ b/compat/arc4random.c @@ -26,7 +26,9 @@ #include #include #include +#ifdef HAVE_STDINT_H #include +#endif #include #include #include diff --git a/compat/getentropy_solaris.c b/compat/getentropy_solaris.c index 838957382..810098a8d 100644 --- a/compat/getentropy_solaris.c +++ b/compat/getentropy_solaris.c @@ -30,7 +30,9 @@ #include #include #include +#ifdef HAVE_STDINT_H #include +#endif #include #include #include @@ -39,10 +41,14 @@ #include #include #include +#ifdef HAVE_SYS_SHA2_H #include #define SHA512_Init SHA512Init #define SHA512_Update SHA512Update #define SHA512_Final SHA512Final +#else +#include "openssl/sha.h" +#endif #include #include diff --git a/compat/reallocarray.c b/compat/reallocarray.c index 04d5d71c8..c969bd067 100644 --- a/compat/reallocarray.c +++ b/compat/reallocarray.c @@ -18,7 +18,10 @@ #include "config.h" #include #include +#ifdef HAVE_STDINT_H #include +#endif +#include #include /* diff --git a/smallapp/unbound-anchor.c b/smallapp/unbound-anchor.c index e1b6d2b79..612f0368f 100644 --- a/smallapp/unbound-anchor.c +++ b/smallapp/unbound-anchor.c @@ -1520,7 +1520,7 @@ xml_entitydeclhandler(void *userData, const XML_Char *ATTR_UNUSED(publicId), const XML_Char *ATTR_UNUSED(notationName)) { -#ifdef HAVE_DECL_XML_STOPPARSER +#if HAVE_DECL_XML_STOPPARSER (void)XML_StopParser((XML_Parser)userData, XML_FALSE); #else (void)userData;