aboutsummaryrefslogtreecommitdiff
path: root/boot
diff options
context:
space:
mode:
authorGravatar Esben Haabendal <esben@haabendal.dk>2019-03-20 14:47:54 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2019-03-20 21:22:14 +0100
commitb38dfa7554760327b35b43d3137c73056c2419fd (patch)
tree087453683fe0a27fcf4bf5c9e47e072f2650ac80 /boot
parent74d99ad941677db785b5175a938c8cdce7707543 (diff)
downloadbuildroot-b38dfa7554760327b35b43d3137c73056c2419fd.tar.gz
buildroot-b38dfa7554760327b35b43d3137c73056c2419fd.tar.bz2
gummiboot: fix compatibility with newer glibc versions
Signed-off-by: Esben Haabendal <esben@haabendal.dk> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'boot')
-rw-r--r--boot/gummiboot/0001-Allow-building-with-newer-glibc-versions.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/boot/gummiboot/0001-Allow-building-with-newer-glibc-versions.patch b/boot/gummiboot/0001-Allow-building-with-newer-glibc-versions.patch
new file mode 100644
index 0000000000..b35cd499bc
--- /dev/null
+++ b/boot/gummiboot/0001-Allow-building-with-newer-glibc-versions.patch
@@ -0,0 +1,31 @@
+From 40ab4167b5a45c772304a879c71b47d54de3b0e3 Mon Sep 17 00:00:00 2001
+From: Esben Haabendal <esben@haabendal.dk>
+Date: Wed, 20 Mar 2019 14:19:40 +0100
+Subject: [PATCH] Allow building with newer glibc versions
+
+Newer glibc versions does not include sys/sysmacros.h from sys/types.h
+anymore. Including it unconditionally should be safe.
+
+See https://sourceware.org/ml/libc-alpha/2015-11/msg00253.html for why
+this was done.
+
+Signed-off-by: Esben Haabendal <esben@haabendal.dk>
+---
+ src/setup/setup.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/setup/setup.c b/src/setup/setup.c
+index 6a4275a2ae36..53429375a146 100644
+--- a/src/setup/setup.c
++++ b/src/setup/setup.c
+@@ -37,6 +37,7 @@
+ #include <ftw.h>
+ #include <stdbool.h>
+ #include <blkid.h>
++#include <sys/sysmacros.h>
+
+ #include "efivars.h"
+
+--
+2.21.0
+