tools/squashfs4: update to version 4.2 (adds support for xz compression)
[openwrt/svn-archive/archive.git] / tools / squashfs4 / patches / 100-portability.patch
1 --- a/squashfs-tools/mksquashfs.c
2 +++ b/squashfs-tools/mksquashfs.c
3 @@ -60,6 +60,10 @@
4 #include <sys/sysinfo.h>
5 #endif
6
7 +#ifndef FNM_EXTMATCH
8 +#define FNM_EXTMATCH 0
9 +#endif
10 +
11 #ifdef SQUASHFS_TRACE
12 #define TRACE(s, args...) \
13 do { \
14 --- a/squashfs-tools/unsquashfs.h
15 +++ b/squashfs-tools/unsquashfs.h
16 @@ -49,8 +49,14 @@
17 #define __BYTE_ORDER BYTE_ORDER
18 #define __BIG_ENDIAN BIG_ENDIAN
19 #define __LITTLE_ENDIAN LITTLE_ENDIAN
20 +#include <sys/sysctl.h>
21 #else
22 #include <endian.h>
23 +#include <sys/sysinfo.h>
24 +#endif
25 +
26 +#ifndef FNM_EXTMATCH
27 +#define FNM_EXTMATCH 0
28 #endif
29
30 #include "squashfs_fs.h"
31 --- a/squashfs-tools/unsquashfs.c
32 +++ b/squashfs-tools/unsquashfs.c
33 @@ -29,7 +29,6 @@
34 #include "compressor.h"
35 #include "xattr.h"
36
37 -#include <sys/sysinfo.h>
38 #include <sys/types.h>
39
40 struct cache *fragment_cache, *data_cache;