summaryrefslogtreecommitdiffstats
path: root/main/squashfs-tools/fix-compat.patch
blob: 2a3b33ca9fe3f98f6512d6990df040aba3aae1d2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
--- squashfs4.3.orig/squashfs-tools/action.c
+++ squashfs4.3/squashfs-tools/action.c
@@ -1905,6 +1905,9 @@
 	return 1;
 }
 
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
 
 TEST_FN(name, ACTION_ALL_LNK, \
 	return fnmatch(atom->argv[0], action_data->name,
--- squashfs4.3.orig/squashfs-tools/mksquashfs.c
+++ squashfs4.3/squashfs-tools/mksquashfs.c
@@ -4391,6 +4391,9 @@
 	return paths;
 }
 
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
 
 int excluded_match(char *name, struct pathname *path, struct pathnames **new)
 {
--- squashfs4.3.orig/squashfs-tools/pseudo.c
+++ squashfs4.3/squashfs-tools/pseudo.c
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <sys/stat.h>
 #include <ctype.h>
 
 #include "pseudo.h"
--- squashfs4.3.orig/squashfs-tools/unsquashfs.c
+++ squashfs4.3/squashfs-tools/unsquashfs.c
@@ -1410,6 +1410,9 @@
 	free(paths);
 }
 
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
 
 int matches(struct pathnames *paths, char *name, struct pathnames **new)
 {