diff options
author | Alex Maclean <monkeh@monkeh.net> | 2017-10-23 13:48:19 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-10-27 11:19:38 +0200 |
commit | 4425fa84dad57b6b0046b97e224d50b33f1f536b (patch) | |
tree | a35eb5584ca74a955fb4bd8bb9436fa065702591 /tools/squashfs4/patches/130-include_sysmacros.patch | |
parent | 09bfca653c0ce9db3588c4046c53b28ae67eddbe (diff) | |
download | upstream-4425fa84dad57b6b0046b97e224d50b33f1f536b.tar.gz upstream-4425fa84dad57b6b0046b97e224d50b33f1f536b.tar.bz2 upstream-4425fa84dad57b6b0046b97e224d50b33f1f536b.zip |
tools/squashfs4: 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#1017
Signed-off-by: Alex Maclean <monkeh@monkeh.net>
[refresh patches]
Signed-off-by: Mathias Kresin <dev@kresin.me>
Diffstat (limited to 'tools/squashfs4/patches/130-include_sysmacros.patch')
-rw-r--r-- | tools/squashfs4/patches/130-include_sysmacros.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/squashfs4/patches/130-include_sysmacros.patch b/tools/squashfs4/patches/130-include_sysmacros.patch new file mode 100644 index 0000000000..e8845130ef --- /dev/null +++ b/tools/squashfs4/patches/130-include_sysmacros.patch @@ -0,0 +1,20 @@ +--- a/squashfs-tools/mksquashfs.c ++++ b/squashfs-tools/mksquashfs.c +@@ -33,6 +33,7 @@ + #include <stddef.h> + #include <sys/time.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + #include <sys/stat.h> + #include <fcntl.h> + #include <errno.h> +--- a/squashfs-tools/unsquashfs.c ++++ b/squashfs-tools/unsquashfs.c +@@ -30,6 +30,7 @@ + #include "xattr.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; |