From 40a9a11794ead811c2687798c5a0e6530d00251c Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Sat, 11 Aug 2018 10:30:31 -0700 Subject: pi-blaster: Fix build with glibc 2.28 Licesnse-Update: Limit the check to license text alone and not until end of file and point to correct lines otherwise license is unchanged Signed-off-by: Khem Raj --- ...aster-Include-sys-sysmacros.h-for-makedev.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch (limited to 'recipes-devtools/pi-blaster/files') diff --git a/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch b/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch new file mode 100644 index 0000000..b4bc4b2 --- /dev/null +++ b/recipes-devtools/pi-blaster/files/0001-pi-blaster-Include-sys-sysmacros.h-for-makedev.patch @@ -0,0 +1,32 @@ +From 6a6b705ff5cba960c54bdb4d4bcdaa3b00a854a2 Mon Sep 17 00:00:00 2001 +From: Khem Raj +Date: Sat, 11 Aug 2018 10:24:24 -0700 +Subject: [PATCH] pi-blaster: Include sys/sysmacros.h for makedev() + +In glibc 2.28+ this header is not included indirectly anymore + +fixes + +ld: pi-blaster.o: in function `mbox_open': +pi-blaster.c:(.text+0x28): undefined reference to `makedev' +collect2: error: ld returned 1 exit status + +Upstream-Status: Submitted [https://github.com/sarfata/pi-blaster/pull/100] + +Signed-off-by: Khem Raj +--- + pi-blaster.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/pi-blaster.c b/pi-blaster.c +index 6cfd010..fc4e686 100644 +--- a/pi-blaster.c ++++ b/pi-blaster.c +@@ -41,6 +41,7 @@ static char VERSION[] = "SNAPSHOT"; + #include + #include + #include ++#include + #include + #include + #include "mailbox.h" -- cgit v1.2.3-54-g00ecf