aboutsummaryrefslogtreecommitdiffstats
path: root/tools/squashfs4/patches/100-portability.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2009-05-17 00:57:52 +0000
committerFelix Fietkau <nbd@openwrt.org>2009-05-17 00:57:52 +0000
commitbc152ef2c51f23916fe442924b430ad441b9d886 (patch)
treea36548da1951e27ae2afbdf5c3f0614492d6bc21 /tools/squashfs4/patches/100-portability.patch
parent9da8f2b2a0bfe1e39ab469769a7af9834fb706eb (diff)
downloadupstream-bc152ef2c51f23916fe442924b430ad441b9d886.tar.gz
upstream-bc152ef2c51f23916fe442924b430ad441b9d886.tar.bz2
upstream-bc152ef2c51f23916fe442924b430ad441b9d886.zip
squashfs4: add lzma support (kernel support still missing)
SVN-Revision: 15884
Diffstat (limited to 'tools/squashfs4/patches/100-portability.patch')
-rw-r--r--tools/squashfs4/patches/100-portability.patch24
1 files changed, 24 insertions, 0 deletions
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 <sys/sysctl.h>
+ #else
+ #include <endian.h>
++#include <sys/sysinfo.h>
+ #endif
+
+ #include "squashfs_fs.h"