--- a/libidav/crypto.h Tue Mar 22 13:05:09 2016 +0100 +++ b/libidav/crypto.h Tue Mar 22 15:40:34 2016 +0100 @@ -33,7 +33,7 @@ #include <openssl/evp.h> #include <ucx/string.h> -#ifdef __sun +#if defined(__sun) && defined(__SunOS_5_10) #include <sha2.h> #define SHA256_Init SHA256Init #define SHA256_Update SHA256Update