tools/squashfs: include sysmacros.h explicitly
[openwrt/openwrt.git] / tools / squashfs / patches / 130-include_sysmacros.patch
1 --- a/squashfs-tools/mksquashfs.c
2 +++ b/squashfs-tools/mksquashfs.c
3 @@ -30,6 +30,7 @@
4 #include <unistd.h>
5 #include <stdio.h>
6 #include <sys/types.h>
7 +#include <sys/sysmacros.h>
8 #include <sys/stat.h>
9 #include <fcntl.h>
10 #include <errno.h>
11 --- a/squashfs-tools/unsquashfs.c
12 +++ b/squashfs-tools/unsquashfs.c
13 @@ -25,6 +25,7 @@
14 #define FALSE 0
15 #include <stdio.h>
16 #include <sys/types.h>
17 +#include <sys/sysmacros.h>
18 #include <sys/stat.h>
19 #include <fcntl.h>
20 #include <errno.h>