--- /dev/null
+--- a/squashfs-tools/mksquashfs.c
++++ b/squashfs-tools/mksquashfs.c
+@@ -34,6 +34,7 @@
+ #include <sys/time.h>
+ #include <sys/types.h>
+ #include <sys/stat.h>
++#include <sys/sysmacros.h>
+ #include <fcntl.h>
+ #include <errno.h>
+ #include <dirent.h>
+
+--- a/squashfs-tools/unsquashfs.c
++++ b/squashfs-tools/unsquashfs.c
+@@ -31,6 +31,7 @@
+
+ #include <sys/sysinfo.h>
+ #include <sys/types.h>
++#include <sys/sysmacros.h>
+
+ struct cache *fragment_cache, *data_cache;
+ struct queue *to_reader, *to_deflate, *to_writer, *from_writer;
$(REMOVE)/squashfs$(HOST_MKSQUASHFS_VER)
$(UNTAR)/squashfs$(HOST_MKSQUASHFS_VER).tar.gz
set -e; cd $(BUILD_TMP)/squashfs$(HOST_MKSQUASHFS_VER); \
+ $(PATCH)/squashfs-4.2-sysmacros.patch; \
$(MAKE) -C squashfs-tools \
LZMA_SUPPORT=1 \
LZMA_DIR=$(BUILD_TMP)/lzma-$(LZMA_VER) \