summaryrefslogblamecommitdiff
path: root/user/squashfs-tools/fix-compat.patch
blob: adc7e420d1dfabee30ea5b5c6f087723b45ab9df (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                             







                                                        


                                 




                       



                                                                        





                       
                                                                          
--- a/squashfs-tools/action.c
+++ b/squashfs-tools/action.c
@@ -2562,6 +2562,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,
--- a/squashfs-tools/mksquashfs.c
+++ b/squashfs-tools/mksquashfs.c
@@ -4557,6 +4557,9 @@
 	return source;
 }
 
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
 
 static struct dir_info *add_source(struct dir_info *sdir, char *source,
 		char *subpath, char *file, char **prefix,
--- a/squashfs-tools/unsquashfs.c
+++ b/squashfs-tools/unsquashfs.c
@@ -1450,6 +1450,9 @@
 	free(paths);
 }
 
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
 
 struct pathname *add_path(struct pathname *paths, int type, char *target,
 							char *alltarget)