--- 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;