aboutsummaryrefslogtreecommitdiffstats
path: root/main/squashfs-tools/fix-compat.patch
diff options
context:
space:
mode:
Diffstat (limited to 'main/squashfs-tools/fix-compat.patch')
-rw-r--r--main/squashfs-tools/fix-compat.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/main/squashfs-tools/fix-compat.patch b/main/squashfs-tools/fix-compat.patch
new file mode 100644
index 0000000000..2ecb17176f
--- /dev/null
+++ b/main/squashfs-tools/fix-compat.patch
@@ -0,0 +1,36 @@
+--- squashfs4.2.orig/squashfs-tools/mksquashfs.c
++++ squashfs4.2/squashfs-tools/mksquashfs.c
+@@ -60,6 +60,10 @@
+ #include <sys/sysinfo.h>
+ #endif
+
++#if !defined(FNM_EXTMATCH)
++#define FNM_EXTMATCH 0
++#endif
++
+ #ifdef SQUASHFS_TRACE
+ #define TRACE(s, args...) \
+ do { \
+--- squashfs4.2.orig/squashfs-tools/pseudo.c
++++ squashfs4.2/squashfs-tools/pseudo.c
+@@ -32,6 +32,7 @@
+ #include <stdlib.h>
+ #include <sys/types.h>
+ #include <sys/wait.h>
++#include <sys/stat.h>
+
+ #include "pseudo.h"
+
+--- squashfs4.2.orig/squashfs-tools/unsquashfs.c
++++ squashfs4.2/squashfs-tools/unsquashfs.c
+@@ -32,6 +32,10 @@
+ #include <sys/sysinfo.h>
+ #include <sys/types.h>
+
++#ifndef FNM_EXTMATCH
++#define FNM_EXTMATCH 0
++#endif
++
+ struct cache *fragment_cache, *data_cache;
+ struct queue *to_reader, *to_deflate, *to_writer, *from_writer;
+ pthread_t *thread, *deflator_thread;