diff options
-rw-r--r-- | Key.c | 5 | ||||
-rw-r--r-- | configure.ac | 3 |
2 files changed, 8 insertions, 0 deletions
@@ -64,6 +64,11 @@ getbits (long data, unsigned char *dst) #ifndef HAVE_ARC4RANDOM_BUF +/* Solaris 11.3.0 - 11.4.15 only define getentropy() in <sys/random.h> */ +#if HAVE_GETENTROPY && HAVE_SYS_RANDOM_H +# include <sys/random.h> +#endif + static void insecure_getrandom_buf (unsigned char *auth, int len) { diff --git a/configure.ac b/configure.ac index 1c6292b..f79fb95 100644 --- a/configure.ac +++ b/configure.ac @@ -52,6 +52,9 @@ XORG_CHECK_SGML_DOCTOOLS(1.8) # Checks for programs. AC_PROG_LN_S +# Checks for header files. +AC_CHECK_HEADERS([sys/random.h]) + # Checks for libraries. AC_SEARCH_LIBS([recvfrom],[socket]) |