aboutsummaryrefslogtreecommitdiffstats
path: root/crypto
diff options
context:
space:
mode:
authorBernd Edlinger <bernd.edlinger@hotmail.de>2019-09-04 11:39:54 +0200
committerBernd Edlinger <bernd.edlinger@hotmail.de>2019-09-05 08:31:10 +0200
commit41ffd2ab09d24692c71850ccd7d5ff154196fe01 (patch)
treec1d1c92686b2198171f8b49c8afb8f21d1323120 /crypto
parent1c3ace6898032b7b45d8106ba4e0d21d75b0997e (diff)
downloadopenssl-41ffd2ab09d24692c71850ccd7d5ff154196fe01.tar.gz
Cleanup includes in rand_unix.c
Fixes #9757 Reviewed-by: Richard Levitte <levitte@openssl.org> (Merged from https://github.com/openssl/openssl/pull/9761)
Diffstat (limited to 'crypto')
-rw-r--r--crypto/rand/rand_unix.c11
1 files 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 <stdio.h>
#include "internal/dso.h"
-#if defined(__linux)
-# include <asm/unistd.h>
-# include <sys/ipc.h>
-# include <sys/shm.h>
-# include <sys/utsname.h>
+#ifdef __linux
+# include <sys/syscall.h>
+# ifdef DEVRANDOM_WAIT
+# include <sys/shm.h>
+# include <sys/utsname.h>
+# endif
#endif
#if defined(__FreeBSD__) && !defined(OPENSSL_SYS_UEFI)
# include <sys/types.h>