summaryrefslogtreecommitdiffstats
path: root/main/squashfs-tools/fix-compat.patch
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2013-09-27 14:15:47 +0000
committerTimo Teräs <timo.teras@iki.fi>2013-09-27 14:22:26 +0000
commitee152f9e0dce8017d033e01e018f1482d27e7e1d (patch)
treeaca69f666c035a941be50683f7784b726d67fe55 /main/squashfs-tools/fix-compat.patch
parent99b94bcdf468a789c7ba70e26da623a974df9e2a (diff)
downloadaports-ee152f9e0dce8017d033e01e018f1482d27e7e1d.tar.bz2
aports-ee152f9e0dce8017d033e01e018f1482d27e7e1d.tar.xz
main/squashfs-tools: fix build against musl
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 000000000..2ecb17176
--- /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;