tools: add some glibc-2.25/gentoo fixes
[lede-git/.git] / tools / squashfs / patches / 210-gentoo_makedev_fix.patch
diff --git a/tools/squashfs/patches/210-gentoo_makedev_fix.patch b/tools/squashfs/patches/210-gentoo_makedev_fix.patch
new file mode 100644 (file)
index 0000000..9444427
--- /dev/null
@@ -0,0 +1,20 @@
+--- a/squashfs-tools/mksquashfs.c.orig 2017-10-12 18:56:52.275247728 +0300
++++ b/squashfs-tools/mksquashfs.c      2017-10-12 18:58:06.050249669 +0300
+@@ -47,6 +47,7 @@
+ #define __LITTLE_ENDIAN LITTLE_ENDIAN
+ #else
+ #include <endian.h>
++#include <sys/sysmacros.h>
+ #endif
+ #include <squashfs_fs.h>
+--- a/squashfs-tools/unsquashfs.c.orig 2017-10-12 18:56:52.276247728 +0300
++++ b/squashfs-tools/unsquashfs.c      2017-10-12 18:58:53.538250918 +0300
+@@ -39,6 +39,7 @@
+ #define __LITTLE_ENDIAN LITTLE_ENDIAN
+ #else
+ #include <endian.h>
++#include <sys/sysmacros.h>
+ #endif
+ #include <squashfs_fs.h>