0001-random-seed-add-missing-header-for-GRND_NONBLOCK.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. From 806e2011a0ea684b10a07b74c4ee0f817437e8c6 Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@smile.fr>
  3. Date: Sun, 1 Mar 2020 15:19:01 +0100
  4. Subject: [PATCH] random-seed: add missing header for GRND_NONBLOCK
  5. GRND_NONBLOCK has been introduced with the 3.17 kernel version [1]
  6. while adding getrandom(2) system call.
  7. The header missing_random.h is needed for random-seed.c when building
  8. with old toolchain, such Sourcery CodeBench ARM 2014.05.
  9. Fixes:
  10. https://gitlab.com/buildroot.org/buildroot/-/jobs/454255917
  11. [1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git/commit/?id=c6e9d6f38894798696f23c8084ca7edbf16ee895
  12. Upstream status:
  13. https://github.com/systemd/systemd/pull/14988
  14. Signed-off-by: Romain Naour <romain.naour@smile.fr>
  15. ---
  16. src/random-seed/random-seed.c | 1 +
  17. 1 file changed, 1 insertion(+)
  18. diff --git a/src/random-seed/random-seed.c b/src/random-seed/random-seed.c
  19. index 2fcbcb281a..596bff98f1 100644
  20. --- a/src/random-seed/random-seed.c
  21. +++ b/src/random-seed/random-seed.c
  22. @@ -19,6 +19,7 @@
  23. #include "io-util.h"
  24. #include "log.h"
  25. #include "main-func.h"
  26. +#include "missing_random.h"
  27. #include "missing_syscall.h"
  28. #include "mkdir.h"
  29. #include "parse-util.h"
  30. --
  31. 2.24.1