1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-12-21 06:10:50 +02:00
openwrt-xburst/tools/squashfs4/patches/100-portability.patch
nbd 5441e7e9d6 squashfs4: add lzma support (kernel support still missing)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15884 3c298f89-4303-0410-b956-a3cf2f4a3e73
2009-05-17 00:57:52 +00:00

25 lines
576 B
Diff

--- 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"