X Tutup
Skip to content

Commit 123aeae

Browse files
authored
random-seed: add missing header for GRND_NONBLOCK (systemd#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
1 parent 8632e87 commit 123aeae

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/random-seed/random-seed.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "io-util.h"
2020
#include "log.h"
2121
#include "main-func.h"
22+
#include "missing_random.h"
2223
#include "missing_syscall.h"
2324
#include "mkdir.h"
2425
#include "parse-util.h"

0 commit comments

Comments
 (0)
X Tutup