projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa24cc0
)
Cleanup includes in rand_unix.c
author
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Wed, 4 Sep 2019 09:39:54 +0000
(11:39 +0200)
committer
Bernd Edlinger
<bernd.edlinger@hotmail.de>
Thu, 5 Sep 2019 06:33:48 +0000
(08:33 +0200)
Fixes #9757
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/9761)
(cherry picked from commit
41ffd2ab09d24692c71850ccd7d5ff154196fe01
)
crypto/rand/rand_unix.c
patch
|
blob
|
history
diff --git
a/crypto/rand/rand_unix.c
b/crypto/rand/rand_unix.c
index d1183603666c020db6b73fa68013862b782a7cb8..1f608c9565aba9e2baf54bd987982b2a9b618dac 100644
(file)
--- 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>