From e60a53c833c33f1be07664acd9a04fa7c2e36c53 Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Sun, 17 May 2009 00:57:52 +0000 Subject: squashfs4: add lzma support (kernel support still missing) git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15884 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- tools/squashfs4/patches/100-portability.patch | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 tools/squashfs4/patches/100-portability.patch (limited to 'tools/squashfs4/patches/100-portability.patch') diff --git a/tools/squashfs4/patches/100-portability.patch b/tools/squashfs4/patches/100-portability.patch new file mode 100644 index 0000000000..4318c0ca60 --- /dev/null +++ b/tools/squashfs4/patches/100-portability.patch @@ -0,0 +1,24 @@ +--- a/squashfs-tools/global.h ++++ b/squashfs-tools/global.h +@@ -44,4 +44,8 @@ typedef long long squashfs_fragment_inde + typedef squashfs_inode_t squashfs_inode; + typedef squashfs_block_t squashfs_block; + ++#ifndef FNM_EXTMATCH ++#define FNM_EXTMATCH 0 ++#endif ++ + #endif +--- a/squashfs-tools/unsquashfs.h ++++ b/squashfs-tools/unsquashfs.h +@@ -49,8 +49,10 @@ + #define __BYTE_ORDER BYTE_ORDER + #define __BIG_ENDIAN BIG_ENDIAN + #define __LITTLE_ENDIAN LITTLE_ENDIAN ++#include + #else + #include ++#include + #endif + + #include "squashfs_fs.h" -- cgit v1.2.3