summaryrefslogtreecommitdiff
path: root/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
diff options
context:
space:
mode:
Diffstat (limited to 'community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch')
-rw-r--r--community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch b/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
new file mode 100644
index 00000000..14246b4a
--- /dev/null
+++ b/community/squashfs-tools/squashfs-tools-4.3-sysmacros.patch
@@ -0,0 +1,24 @@
+diff -rauN squashfs4.3/squashfs-tools/mksquashfs.c squashfs4.3-sysmacros-patch/squashfs-tools/mksquashfs.c
+--- squashfs4.3/squashfs-tools/mksquashfs.c 2014-05-13 00:18:20.000000000 +0200
++++ squashfs4.3-sysmacros-patch/squashfs-tools/mksquashfs.c 2018-10-26 21:25:02.550480701 +0200
+@@ -59,6 +59,7 @@
+ #else
+ #include <endian.h>
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #endif
+
+ #include "squashfs_fs.h"
+diff -rauN squashfs4.3/squashfs-tools/unsquashfs.c squashfs4.3-sysmacros-patch/squashfs-tools/unsquashfs.c
+--- squashfs4.3/squashfs-tools/unsquashfs.c 2014-05-13 00:18:35.000000000 +0200
++++ squashfs4.3-sysmacros-patch/squashfs-tools/unsquashfs.c 2018-10-26 21:25:27.830242229 +0200
+@@ -37,6 +37,9 @@
+ #include <sys/resource.h>
+ #include <limits.h>
+ #include <ctype.h>
++#ifdef linux
++#include <sys/sysmacros.h>
++#endif
+
+ struct cache *fragment_cache, *data_cache;
+ struct queue *to_reader, *to_inflate, *to_writer, *from_writer;