diff options
author | Felix Fietkau <nbd@openwrt.org> | 2011-04-03 01:02:00 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2011-04-03 01:02:00 +0000 |
commit | 461322087525f0c9a6bb8e6ab1af8a6dea94917f (patch) | |
tree | 3f02232de53773909d9b65893820367f2c06de25 /tools/squashfs4/patches/100-portability.patch | |
parent | 348c9234b37afb936a356526fb5896cadc667d2d (diff) | |
download | master-187ad058-461322087525f0c9a6bb8e6ab1af8a6dea94917f.tar.gz master-187ad058-461322087525f0c9a6bb8e6ab1af8a6dea94917f.tar.bz2 master-187ad058-461322087525f0c9a6bb8e6ab1af8a6dea94917f.zip |
tools/squashfs4: update to version 4.2 (adds support for xz compression)
Based on a patch by Jonas Gorski
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26422 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'tools/squashfs4/patches/100-portability.patch')
-rw-r--r-- | tools/squashfs4/patches/100-portability.patch | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/tools/squashfs4/patches/100-portability.patch b/tools/squashfs4/patches/100-portability.patch index 4318c0ca60..ac1349c7a3 100644 --- a/tools/squashfs4/patches/100-portability.patch +++ b/tools/squashfs4/patches/100-portability.patch @@ -1,17 +1,19 @@ ---- 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; +--- a/squashfs-tools/mksquashfs.c ++++ b/squashfs-tools/mksquashfs.c +@@ -60,6 +60,10 @@ + #include <sys/sysinfo.h> + #endif +#ifndef FNM_EXTMATCH +#define FNM_EXTMATCH 0 +#endif + - #endif + #ifdef SQUASHFS_TRACE + #define TRACE(s, args...) \ + do { \ --- a/squashfs-tools/unsquashfs.h +++ b/squashfs-tools/unsquashfs.h -@@ -49,8 +49,10 @@ +@@ -49,8 +49,14 @@ #define __BYTE_ORDER BYTE_ORDER #define __BIG_ENDIAN BIG_ENDIAN #define __LITTLE_ENDIAN LITTLE_ENDIAN @@ -19,6 +21,20 @@ #else #include <endian.h> +#include <sys/sysinfo.h> ++#endif ++ ++#ifndef FNM_EXTMATCH ++#define FNM_EXTMATCH 0 #endif #include "squashfs_fs.h" +--- a/squashfs-tools/unsquashfs.c ++++ b/squashfs-tools/unsquashfs.c +@@ -29,7 +29,6 @@ + #include "compressor.h" + #include "xattr.h" + +-#include <sys/sysinfo.h> + #include <sys/types.h> + + struct cache *fragment_cache, *data_cache; |