0001-Allow-building-with-newer-glibc-versions.patch 822 B

12345678910111213141516171819202122232425262728293031
  1. From 40ab4167b5a45c772304a879c71b47d54de3b0e3 Mon Sep 17 00:00:00 2001
  2. From: Esben Haabendal <esben@haabendal.dk>
  3. Date: Wed, 20 Mar 2019 14:19:40 +0100
  4. Subject: [PATCH] Allow building with newer glibc versions
  5. Newer glibc versions does not include sys/sysmacros.h from sys/types.h
  6. anymore. Including it unconditionally should be safe.
  7. See https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html for why
  8. this was done.
  9. Signed-off-by: Esben Haabendal <esben@haabendal.dk>
  10. ---
  11. src/setup/setup.c | 1 +
  12. 1 file changed, 1 insertion(+)
  13. diff --git a/src/setup/setup.c b/src/setup/setup.c
  14. index 6a4275a2ae36..53429375a146 100644
  15. --- a/src/setup/setup.c
  16. +++ b/src/setup/setup.c
  17. @@ -37,6 +37,7 @@
  18. #include <ftw.h>
  19. #include <stdbool.h>
  20. #include <blkid.h>
  21. +#include <sys/sysmacros.h>
  22. #include "efivars.h"
  23. --
  24. 2.21.0