summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-devtools/squashfs-tools/squashfs-tools/squashfs-tools-4.3-sysmacros.patch32
-rw-r--r--meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb1
2 files changed, 33 insertions, 0 deletions
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools/squashfs-tools-4.3-sysmacros.patch b/meta/recipes-devtools/squashfs-tools/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
new file mode 100644
index 0000000000..39521a7d8b
--- /dev/null
+++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
@@ -0,0 +1,32 @@
1From https://gitweb.gentoo.org/repo/gentoo.git/tree/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
2
3Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
4
5Upstream-Status: Pending
6
7
8sys/types.h might not always include sys/sysmacros.h for major/minor/makedev
9
10--- a/squashfs-tools/mksquashfs.c
11+++ b/squashfs-tools/mksquashfs.c
12@@ -59,6 +59,7 @@
13 #else
14 #include <endian.h>
15 #include <sys/sysinfo.h>
16+#include <sys/sysmacros.h>
17 #endif
18
19 #include "squashfs_fs.h"
20--- a/squashfs-tools/unsquashfs.c
21+++ b/squashfs-tools/unsquashfs.c
22@@ -38,6 +38,10 @@
23 #include <limits.h>
24 #include <ctype.h>
25
26+#ifdef linux
27+#include <sys/sysmacros.h>
28+#endif
29+
30 struct cache *fragment_cache, *data_cache;
31 struct queue *to_reader, *to_inflate, *to_writer, *from_writer;
32 pthread_t *thread, *inflator_thread;
diff --git a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb
index 4f68d01131..0f991706c1 100644
--- a/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb
+++ b/meta/recipes-devtools/squashfs-tools/squashfs-tools_git.bb
@@ -13,6 +13,7 @@ SRCREV = "9c1db6d13a51a2e009f0027ef336ce03624eac0d"
13SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \ 13SRC_URI = "git://github.com/plougher/squashfs-tools.git;protocol=https \
14 http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2;name=lzma \ 14 http://downloads.sourceforge.net/sevenzip/lzma465.tar.bz2;name=lzma \
15 file://0001-mksquashfs.c-get-inline-functions-work-with-C99.patch;striplevel=2 \ 15 file://0001-mksquashfs.c-get-inline-functions-work-with-C99.patch;striplevel=2 \
16 file://squashfs-tools-4.3-sysmacros.patch;striplevel=2 \
16 file://fix-compat.patch \ 17 file://fix-compat.patch \
17" 18"
18UPSTREAM_VERSION_UNKNOWN = "1" 19UPSTREAM_VERSION_UNKNOWN = "1"