From f8b10dce24680e78e92931fb04e431da9c2d89da Mon Sep 17 00:00:00 2001 From: Gavin Schenk Date: Wed, 19 Dec 2018 08:04:12 +0100 Subject: squashfs-tools: Use sysmacros fixes build with glibc >= 2.28 Signed-off-by: Gavin Schenk Signed-off-by: Michael Olbrich --- ...Use-sysmacros-fixes-build-with-glibc-2.28.patch | 41 ++++++++++++++++++++++ patches/squashfs4.3/series | 4 +++ 2 files changed, 45 insertions(+) create mode 100644 patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch create mode 100644 patches/squashfs4.3/series (limited to 'patches') diff --git a/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch new file mode 100644 index 000000000..a8c4d6296 --- /dev/null +++ b/patches/squashfs4.3/0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch @@ -0,0 +1,41 @@ +From: Gavin Schenk +Date: Tue, 18 Dec 2018 11:19:47 +0100 +Subject: [PATCH] Use sysmacros fixes build with glibc >= 2.28 + +From the manpages major, minor, makedev: +The BSDs expose the definitions for these macros via . +Depending on the version, glibc also exposes definitions for these macros +from that header file if suitable feature test macros are defined. +However, this behavior was deprecated in glibc 2.25, +and since glibc 2.28, no longer provides these definitions. + +Signed-off-by: Gavin Schenk +--- + squashfs-tools/mksquashfs.c | 1 + + squashfs-tools/unsquashfs.c | 1 + + 2 files changed, 2 insertions(+) + +diff --git a/squashfs-tools/mksquashfs.c b/squashfs-tools/mksquashfs.c +index 86f82bb92804..84affd4be160 100644 +--- a/squashfs-tools/mksquashfs.c ++++ b/squashfs-tools/mksquashfs.c +@@ -33,6 +33,7 @@ + #include + #include + #include ++#include + #include + #include + #include +diff --git a/squashfs-tools/unsquashfs.c b/squashfs-tools/unsquashfs.c +index 1323dd6f2cb9..2633e0c0b7ef 100644 +--- a/squashfs-tools/unsquashfs.c ++++ b/squashfs-tools/unsquashfs.c +@@ -32,6 +32,7 @@ + #include "stdarg.h" + + #include ++#include + #include + #include + #include diff --git a/patches/squashfs4.3/series b/patches/squashfs4.3/series new file mode 100644 index 000000000..c66134800 --- /dev/null +++ b/patches/squashfs4.3/series @@ -0,0 +1,4 @@ +# generated by git-ptx-patches +#tag:base --start-number 1 +0001-Use-sysmacros-fixes-build-with-glibc-2.28.patch +# 4b854e836f049da26f6a51c9c416871d - git-ptx-patches magic -- cgit v1.2.3