diff options
author | Romain Naour <romain.naour@gmail.com> | 2020-03-02 06:48:21 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-02 14:48:21 +0900 |
commit | 123aeae20672f251fa0305a99ee8ccd6c97850ad (patch) | |
tree | e5c5fc3a8a82b34769dde837f47de117adbab343 /src/random-seed/random-seed.c | |
parent | 8632e87689031378e7b1be74f27b7f08f548999a (diff) | |
download | systemd-123aeae20672f251fa0305a99ee8ccd6c97850ad.tar.gz |
random-seed: add missing header for GRND_NONBLOCK (#14988)
GRND_NONBLOCK has been introduced with the 3.17 kernel version [1]
while adding getrandom(2) system call.
The header missing_random.h is needed for random-seed.c when building
with old toolchain, such Sourcery CodeBench ARM 2014.05 (kernel headers
3.13).
Fixes:
https://gitlab.com/buildroot.org/buildroot/-/jobs/454255917
[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895
Diffstat (limited to 'src/random-seed/random-seed.c')
-rw-r--r-- | src/random-seed/random-seed.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c index 2fcbcb281a..596bff98f1 100644 --- a/src/random-seed/random-seed.c +++ b/src/random-seed/random-seed.c @@ -19,6 +19,7 @@ #include "io-util.h" #include "log.h" #include "main-func.h" +#include "missing_random.h" #include "missing_syscall.h" #include "mkdir.h" #include "parse-util.h" |