4 http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch
7 Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
9 Define FNM_EXTMATCH if not defined its glibc specific define
10 include missing sys/stat.h for stat* function declarations
12 Upstream-Status: Pending
13 Signed-off-by: Khem Raj <raj.khem@gmail.com>
15 Index: squashfs-tools/action.c
16 ===================================================================
17 --- a/squashfs-tools.orig/action.c
18 +++ b/squashfs-tools/action.c
23 +#if !defined(FNM_EXTMATCH)
24 +#define FNM_EXTMATCH 0
28 * code to parse actions
30 Index: squashfs-tools/mksquashfs.c
31 ===================================================================
32 --- a/squashfs-tools.orig/mksquashfs.c
33 +++ b/squashfs-tools/mksquashfs.c
34 @@ -1286,6 +1286,10 @@ void write_dir(squashfs_inode *inode, st
35 dir_size + 3, directory_block, directory_offset, NULL, NULL,
38 +#if !defined(FNM_EXTMATCH)
39 +#define FNM_EXTMATCH 0
45 Index: squashfs-tools/pseudo.c
46 ===================================================================
47 --- a/squashfs-tools.orig/pseudo.c
48 +++ b/squashfs-tools/pseudo.c
51 #include <sys/types.h>
53 +#include <sys/stat.h>
57 Index: squashfs-tools/unsquashfs.c
58 ===================================================================
59 --- a/squashfs-tools.orig/unsquashfs.c
60 +++ b/squashfs-tools/unsquashfs.c
66 +#define FNM_EXTMATCH 0
69 struct cache *fragment_cache, *data_cache;
70 struct queue *to_reader, *to_inflate, *to_writer, *from_writer;
71 pthread_t *thread, *inflator_thread;