From ee152f9e0dce8017d033e01e018f1482d27e7e1d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20Ter=C3=A4s?= Date: Fri, 27 Sep 2013 14:15:47 +0000 Subject: main/squashfs-tools: fix build against musl --- main/squashfs-tools/fix-compat.patch | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 main/squashfs-tools/fix-compat.patch (limited to 'main/squashfs-tools/fix-compat.patch') 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 + #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 + #include + #include ++#include + + #include "pseudo.h" + +--- squashfs4.2.orig/squashfs-tools/unsquashfs.c ++++ squashfs4.2/squashfs-tools/unsquashfs.c +@@ -32,6 +32,10 @@ + #include + #include + ++#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; -- cgit v1.2.3