Limit DEVRANDOM_WAIT to linux
authorBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 7 Mar 2019 07:19:28 +0000 (08:19 +0100)
committerBernd Edlinger <bernd.edlinger@hotmail.de>
Thu, 7 Mar 2019 21:39:33 +0000 (22:39 +0100)
Fixes #8416

Reviewed-by: Kurt Roeckx <kurt@roeckx.be>
(Merged from https://github.com/openssl/openssl/pull/8428)

(cherry picked from commit 596521f48826892ddd62322726f6f2a2a52db652)

e_os.h

diff --git a/e_os.h b/e_os.h
index 556688f64c5d0e8b5f89fee5f2185fbdcd3c99a9..7d94b8245d5551fa595dd9b4db4898870aff23c3 100644 (file)
--- 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)
 /*