From 41ffd2ab09d24692c71850ccd7d5ff154196fe01 Mon Sep 17 00:00:00 2001 From: Bernd Edlinger Date: Wed, 4 Sep 2019 11:39:54 +0200 Subject: [PATCH] Cleanup includes in rand_unix.c Fixes #9757 Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9761) --- crypto/rand/rand_unix.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/crypto/rand/rand_unix.c b/crypto/rand/rand_unix.c index e59882cde7..fb8a7b7c6d 100644 --- a/crypto/rand/rand_unix.c +++ b/crypto/rand/rand_unix.c @@ -19,11 +19,12 @@ #include "internal/rand_int.h" #include #include "internal/dso.h" -#if defined(__linux) -# include -# include -# include -# include +#ifdef __linux +# include +# ifdef DEVRANDOM_WAIT +# include +# include +# endif #endif #if defined(__FreeBSD__) && !defined(OPENSSL_SYS_UEFI) # include -- 2.25.1