X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=bright-ben%2Ftools%2Fsquashfs4%2Fpatches%2F100-portability.patch;fp=bright-ben%2Ftools%2Fsquashfs4%2Fpatches%2F100-portability.patch;h=4318c0ca60299f1b5cbaaf72b9d6349bdb90ff4a;hb=ccc7181b2c69760b7adb7db119d423e8f48b260b;hp=0000000000000000000000000000000000000000;hpb=90fe2e8d3fa58bf3e84ff898f41048f7e1a424bf;p=librewrt%2F.git diff --git a/bright-ben/tools/squashfs4/patches/100-portability.patch b/bright-ben/tools/squashfs4/patches/100-portability.patch new file mode 100644 index 0000000..4318c0c --- /dev/null +++ b/bright-ben/tools/squashfs4/patches/100-portability.patch @@ -0,0 +1,24 @@ +--- a/squashfs-tools/global.h ++++ b/squashfs-tools/global.h +@@ -44,4 +44,8 @@ typedef long long squashfs_fragment_inde + typedef squashfs_inode_t squashfs_inode; + typedef squashfs_block_t squashfs_block; + ++#ifndef FNM_EXTMATCH ++#define FNM_EXTMATCH 0 ++#endif ++ + #endif +--- a/squashfs-tools/unsquashfs.h ++++ b/squashfs-tools/unsquashfs.h +@@ -49,8 +49,10 @@ + #define __BYTE_ORDER BYTE_ORDER + #define __BIG_ENDIAN BIG_ENDIAN + #define __LITTLE_ENDIAN LITTLE_ENDIAN ++#include + #else + #include ++#include + #endif + + #include "squashfs_fs.h"