From 596521f48826892ddd62322726f6f2a2a52db652 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Thu, 7 Mar 2019 08:19:28 +0100 Subject: [PATCH] Limit DEVRANDOM_WAIT to linux Fixes #8416 Reviewed-by: Kurt Roeckx (Merged from https://github.com/openssl/openssl/pull/8428) --- e_os.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/e_os.h b/e_os.h index 472354e094..26de710ce4 100644 --- a/e_os.h +++ b/e_os.h @@ -28,7 +28,9 @@ * default, we will try to read at least one of these files */ # define DEVRANDOM "/dev/urandom", "/dev/random", "/dev/hwrng", "/dev/srandom" -# define DEVRANDOM_WAIT "/dev/random" +# ifdef __linux +# define DEVRANDOM_WAIT "/dev/random" +# endif # endif # if !defined(OPENSSL_NO_EGD) && !defined(DEVRANDOM_EGD) /* -- 2.25.1