package/python-simplejson: bump version to 3.8.2
[buildroot-gz.git] / package / squashfs / 0001-musl.patch
blob891b1717a2059bfdb0bc5cdf88a40a0c9e844b42
1 Fix musl build
3 Downloaded from
4 http://cgit.openembedded.org/openembedded-core/tree/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch
5 and adjusted paths.
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
19 @@ -44,6 +44,10 @@
20 #include "action.h"
21 #include "error.h"
23 +#if !defined(FNM_EXTMATCH)
24 +#define FNM_EXTMATCH 0
25 +#endif
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,
36 dir, 0);
38 +#if !defined(FNM_EXTMATCH)
39 +#define FNM_EXTMATCH 0
40 +#endif
42 #ifdef SQUASHFS_TRACE
44 unsigned char *dirp;
45 Index: squashfs-tools/pseudo.c
46 ===================================================================
47 --- a/squashfs-tools.orig/pseudo.c
48 +++ b/squashfs-tools/pseudo.c
49 @@ -32,6 +32,7 @@
50 #include <stdlib.h>
51 #include <sys/types.h>
52 #include <sys/wait.h>
53 +#include <sys/stat.h>
54 #include <ctype.h>
56 #include "pseudo.h"
57 Index: squashfs-tools/unsquashfs.c
58 ===================================================================
59 --- a/squashfs-tools.orig/unsquashfs.c
60 +++ b/squashfs-tools/unsquashfs.c
61 @@ -38,6 +38,10 @@
62 #include <limits.h>
63 #include <ctype.h>
65 +#ifndef FNM_EXTMATCH
66 +#define FNM_EXTMATCH 0
67 +#endif
69 struct cache *fragment_cache, *data_cache;
70 struct queue *to_reader, *to_inflate, *to_writer, *from_writer;
71 pthread_t *thread, *inflator_thread;