Fix build when linux-headers are not installed.
linux/random.h is not really needed if FIPS mode is not enabled. Note
that use of the getrandom syscall is unaffected by this header.
Fixes commit bc7daec4d8
Change-Id: Ia367aeffb3f2802ba97fd1507de0b718d9ac2c55
Reviewed-on: https://boringssl-review.googlesource.com/19644
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
CQ-Verified: CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org>
This commit is contained in:
parent
302b818d4b
commit
2c46c10631
@ -29,8 +29,10 @@
|
||||
#include <unistd.h>
|
||||
|
||||
#if defined(OPENSSL_LINUX)
|
||||
#if defined(BORINGSSL_FIPS)
|
||||
#include <linux/random.h>
|
||||
#include <sys/ioctl.h>
|
||||
#endif
|
||||
#include <sys/syscall.h>
|
||||
#endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user