summaryrefslogtreecommitdiff
path: root/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-11-14 05:06:15 +0300
committerGluzskiy Alexandr <sss@sss.chaoslab.ru>2017-11-14 05:06:15 +0300
commit186bb186241eb4f42b477534e421073160ffde6f (patch)
treeb4f2136bf3a1f57ff60264cc784a290d4895a00e /sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
parent9db9e1d7909f1ab77f5d797545fa97881ed66caf (diff)
squashfs-tools + zstd
Diffstat (limited to 'sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch')
-rw-r--r--sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch b/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
new file mode 100644
index 0000000..1430b1a
--- /dev/null
+++ b/sys-fs/squashfs-tools/files/squashfs-tools-4.3-sysmacros.patch
@@ -0,0 +1,25 @@
+sys/types.h might not always include sys/sysmacros.h for major/minor/makedev
+
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -59,6 +59,7 @@
+ #else
+ #include <endian.h>
+ #include <sys/sysinfo.h>
++#include <sys/sysmacros.h>
+ #endif
+
+ #include "squashfs_fs.h"
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -38,6 +38,10 @@
+ #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;
+ pthread_t *thread, *inflator_thread;