From 09bfca653c0ce9db3588c4046c53b28ae67eddbe Mon Sep 17 00:00:00 2001 From: Alex Maclean Date: Mon, 23 Oct 2017 13:47:55 +0100 Subject: [PATCH] tools/squashfs: include sysmacros.h explicitly glibc is moving to remove the include of sys/sysmacros.h from sys/types.h, and some distros have done this early. Other libcs may already lack this include. Include sysmacros.h explicitly. Fixes: FS#1018 Signed-off-by: Alex Maclean --- .../patches/130-include_sysmacros.patch | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 tools/squashfs/patches/130-include_sysmacros.patch diff --git a/tools/squashfs/patches/130-include_sysmacros.patch b/tools/squashfs/patches/130-include_sysmacros.patch new file mode 100644 index 00000000000..f0149d6f65f --- /dev/null +++ b/tools/squashfs/patches/130-include_sysmacros.patch @@ -0,0 +1,20 @@ +--- a/squashfs-tools/mksquashfs.c ++++ b/squashfs-tools/mksquashfs.c +@@ -30,6 +30,7 @@ + #include + #include + #include ++#include + #include + #include + #include +--- a/squashfs-tools/unsquashfs.c ++++ b/squashfs-tools/unsquashfs.c +@@ -25,6 +25,7 @@ + #define FALSE 0 + #include + #include ++#include + #include + #include + #include