In glibc 2.23 sys/types.h does not include sys/sysmacros.h any more, this causes a build failure. To prevent this include in manually.
Reported-by: Weedy <[email protected]> Signed-off-by: Hauke Mehrtens <[email protected]> --- tools/mtd-utils/patches/120-makedev.patch | 10 ++++++++++ tools/mtd-utils/patches/130-lzma_jffs2.patch | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 tools/mtd-utils/patches/120-makedev.patch diff --git a/tools/mtd-utils/patches/120-makedev.patch b/tools/mtd-utils/patches/120-makedev.patch new file mode 100644 index 0000000..0412669 --- /dev/null +++ b/tools/mtd-utils/patches/120-makedev.patch @@ -0,0 +1,10 @@ +--- a/mkfs.jffs2.c ++++ b/mkfs.jffs2.c +@@ -50,6 +50,7 @@ + #define PROGRAM_NAME "mkfs.jffs2" + + #include <sys/types.h> ++#include <sys/sysmacros.h> + #include <stdio.h> + #include <sys/stat.h> + #include <unistd.h> diff --git a/tools/mtd-utils/patches/130-lzma_jffs2.patch b/tools/mtd-utils/patches/130-lzma_jffs2.patch index b04f019..0d88c88 100644 --- a/tools/mtd-utils/patches/130-lzma_jffs2.patch +++ b/tools/mtd-utils/patches/130-lzma_jffs2.patch @@ -5012,7 +5012,7 @@ +} --- a/mkfs.jffs2.c +++ b/mkfs.jffs2.c -@@ -1659,11 +1659,11 @@ int main(int argc, char **argv) +@@ -1660,11 +1660,11 @@ int main(int argc, char **argv) } erase_block_size *= units; -- 2.8.0.rc3 _______________________________________________ openwrt-devel mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel
