--- /dev/null
+--- 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>