aboutsummaryrefslogtreecommitdiffstats
path: root/recipes/obsolete/squashfs-tools/squashfs-tools-4.0/portability.patch
blob: 4318c0ca60299f1b5cbaaf72b9d6349bdb90ff4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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 <sys/sysctl.h>
 #else
 #include <endian.h>
+#include <sys/sysinfo.h>
 #endif
 
 #include "squashfs_fs.h"