diff options
author | Alex Maclean <monkeh@monkeh.net> | 2017-10-23 13:47:55 +0100 |
---|---|---|
committer | Mathias Kresin <dev@kresin.me> | 2017-10-27 11:19:38 +0200 |
commit | 09bfca653c0ce9db3588c4046c53b28ae67eddbe (patch) | |
tree | a7903a2ce1626f2cfb94c37e8b52dbadfc786800 /tools | |
parent | 855d210f656961cb989c2741748942414dbdefb7 (diff) | |
download | upstream-09bfca653c0ce9db3588c4046c53b28ae67eddbe.tar.gz upstream-09bfca653c0ce9db3588c4046c53b28ae67eddbe.tar.bz2 upstream-09bfca653c0ce9db3588c4046c53b28ae67eddbe.zip |
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 <monkeh@monkeh.net>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/squashfs/patches/130-include_sysmacros.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/tools/squashfs/patches/130-include_sysmacros.patch b/tools/squashfs/patches/130-include_sysmacros.patch new file mode 100644 index 0000000000..f0149d6f65 --- /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 <unistd.h> + #include <stdio.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 +@@ -25,6 +25,7 @@ + #define FALSE 0 + #include <stdio.h> + #include <sys/types.h> ++#include <sys/sysmacros.h> + #include <sys/stat.h> + #include <fcntl.h> + #include <errno.h> |