summaryrefslogtreecommitdiff
path: root/user/squashfs-tools/fix-compat.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 20:25:27 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-05 20:25:27 -0500
commit25dbded13a57b4bae4ba219a5d2874b7035d389e (patch)
tree32498743c47caff20449cc0e894edf1a59ff48f1 /user/squashfs-tools/fix-compat.patch
parentbe94847a164f9ae0d58332b1de3ed8b037e2fc14 (diff)
downloadpackages-25dbded13a57b4bae4ba219a5d2874b7035d389e.tar.gz
packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.tar.bz2
packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.tar.xz
packages-25dbded13a57b4bae4ba219a5d2874b7035d389e.zip
user/squashfs-tools: pull in, fix, take
Diffstat (limited to 'user/squashfs-tools/fix-compat.patch')
-rw-r--r--user/squashfs-tools/fix-compat.patch46
1 files changed, 46 insertions, 0 deletions
diff --git a/user/squashfs-tools/fix-compat.patch b/user/squashfs-tools/fix-compat.patch
new file mode 100644
index 000000000..2a3b33ca9
--- /dev/null
+++ b/user/squashfs-tools/fix-compat.patch
@@ -0,0 +1,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)
+ {