diff options
author | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-12-12 22:18:57 +0000 |
---|---|---|
committer | Dag-Erling Smørgrav <des@FreeBSD.org> | 2015-12-12 22:18:57 +0000 |
commit | a7af7146c91c816cb83e0c5812eca7019531acb5 (patch) | |
tree | 6e64b645522115b817ba7eabd4e4ce58f129e8c7 /compat/getentropy_solaris.c | |
parent | 835a7e7a4dd68819f7610dafdf9277d3852aef6a (diff) |
Diffstat (limited to 'compat/getentropy_solaris.c')
-rw-r--r-- | compat/getentropy_solaris.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/compat/getentropy_solaris.c b/compat/getentropy_solaris.c index 838957382e7f..810098a8d8e4 100644 --- a/compat/getentropy_solaris.c +++ b/compat/getentropy_solaris.c @@ -30,7 +30,9 @@ #include <sys/stat.h> #include <sys/time.h> #include <stdlib.h> +#ifdef HAVE_STDINT_H #include <stdint.h> +#endif #include <stdio.h> #include <termios.h> #include <fcntl.h> @@ -39,10 +41,14 @@ #include <errno.h> #include <unistd.h> #include <time.h> +#ifdef HAVE_SYS_SHA2_H #include <sys/sha2.h> #define SHA512_Init SHA512Init #define SHA512_Update SHA512Update #define SHA512_Final SHA512Final +#else +#include "openssl/sha.h" +#endif #include <sys/vfs.h> #include <sys/statfs.h> |