From: Bernd Edlinger Date: Wed, 4 Sep 2019 09:39:54 +0000 (+0200) Subject: Cleanup includes in rand_unix.c X-Git-Tag: openssl-3.0.0-alpha1~1500 X-Git-Url: https://git.openssl.org/?p=openssl.git;a=commitdiff_plain;h=41ffd2ab09d24692c71850ccd7d5ff154196fe01 Cleanup includes in rand_unix.c Fixes #9757 Reviewed-by: Richard Levitte (Merged from https://github.com/openssl/openssl/pull/9761) --- 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