diff options
author | Khem Raj <raj.khem@gmail.com> | 2018-08-11 14:51:13 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2018-08-15 08:20:06 -0700 |
commit | 85b0d91d397fd46922c9266db13e725f36968837 (patch) | |
tree | 69070c7e06c65ba034d81bc79daff89524e7eb8e /meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch | |
parent | b19f8c7d6e98b911620ea6fdb606339f49aca18a (diff) | |
download | meta-openembedded-contrib-85b0d91d397fd46922c9266db13e725f36968837.tar.gz |
kexecboot: Fix build with glibc 2.28+
Update to latest srcrev at the same time.
Fix out of tree builds
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch')
-rw-r--r-- | meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch b/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch new file mode 100644 index 0000000000..f12ae99e72 --- /dev/null +++ b/meta-initramfs/recipes-bsp/kexecboot/files/0002-include-sys-sysmacros.h.patch @@ -0,0 +1,30 @@ +From c587012cbe448c9295f50497812ca3530cabbb51 Mon Sep 17 00:00:00 2001 +From: Khem Raj <raj.khem@gmail.com> +Date: Sat, 11 Aug 2018 14:39:01 -0700 +Subject: [PATCH 2/2] include sys/sysmacros.h + +glibc 2.28+ does not include this header implicitly via other system +headers anymore + +src/devicescan.c:373: undefined reference to `makedev' + +Signed-off-by: Khem Raj <raj.khem@gmail.com> +--- + src/devicescan.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/devicescan.c b/src/devicescan.c +index 4f2f497..0b2b253 100644 +--- a/src/devicescan.c ++++ b/src/devicescan.c +@@ -20,6 +20,7 @@ + #include <stdlib.h> + #include <string.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + #include <sys/stat.h> + #include <fcntl.h> + #include <unistd.h> +-- +2.18.0 + |