summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-03-14 16:13:48 +0100
committerJeroen Roovers <jer@gentoo.org>2019-03-14 16:15:06 +0100
commit3dd88b674ce2c8519c1452ea0eddd181036d84b6 (patch)
tree40a9eed1d51a813267bd1fdbf8734a3808398f84 /sys-fs/squashfs-tools/files
parentsys-fs/squashfs-tools: Add USE=zstd (diff)
downloadgentoo-3dd88b674ce2c8519c1452ea0eddd181036d84b6.tar.gz
gentoo-3dd88b674ce2c8519c1452ea0eddd181036d84b6.tar.bz2
gentoo-3dd88b674ce2c8519c1452ea0eddd181036d84b6.zip
sys-fs/squashfs-tools: Fix includes
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Bug: https://bugs.gentoo.org/show_bug.cgi?id=575232 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'sys-fs/squashfs-tools/files')
-rw-r--r--sys-fs/squashfs-tools/files/squashfs-tools-3.2-makedev.patch20
-rw-r--r--sys-fs/squashfs-tools/files/squashfs-tools-3.4-makedev.patch20
2 files changed, 40 insertions, 0 deletions
diff --git a/sys-fs/squashfs-tools/files/squashfs-tools-3.2-makedev.patch b/sys-fs/squashfs-tools/files/squashfs-tools-3.2-makedev.patch
new file mode 100644
index 000000000000..b7bffe01af9a
--- /dev/null
+++ b/sys-fs/squashfs-tools/files/squashfs-tools-3.2-makedev.patch
@@ -0,0 +1,20 @@
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -34,6 +34,7 @@
+ #include <zlib.h>
+ #include <sys/mman.h>
+ #include <utime.h>
++#include <sys/sysmacros.h> /* makedev */
+
+ #ifndef linux
+ #define __BYTE_ORDER BYTE_ORDER
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -44,6 +44,7 @@
+ #include <sys/mman.h>
+ #include <pthread.h>
+ #include <math.h>
++#include <sys/sysmacros.h> /* makedev */
+
+ #ifndef linux
+ #define __BYTE_ORDER BYTE_ORDER
diff --git a/sys-fs/squashfs-tools/files/squashfs-tools-3.4-makedev.patch b/sys-fs/squashfs-tools/files/squashfs-tools-3.4-makedev.patch
new file mode 100644
index 000000000000..17eb3ffaac28
--- /dev/null
+++ b/sys-fs/squashfs-tools/files/squashfs-tools-3.4-makedev.patch
@@ -0,0 +1,20 @@
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -47,6 +47,7 @@
+ #include <math.h>
+ #include <regex.h>
+ #include <fnmatch.h>
++#include <sys/sysmacros.h> /* makedev */
+
+ #ifndef linux
+ #define __BYTE_ORDER BYTE_ORDER
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -47,6 +47,7 @@
+ #include <math.h>
+ #include <sys/ioctl.h>
+ #include <sys/time.h>
++#include <sys/sysmacros.h> /* makedev */
+
+ #ifndef linux
+ #define __BYTE_ORDER BYTE_ORDER