aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/squashfs-tools/squashfs-tools/fix-compat.patch
blob: 0ce7b4e8ce2e8be9b8d0a819b6be054aa496f382 (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
Define FNM_EXTMATCH if not defined its glibc specific define
include missing sys/stat.h for stat* function declarations

Upstream-Status: Pending
Signed-off-by: Khem Raj <raj.khem@gmail.com>

Index: squashfs-tools/action.c
===================================================================
--- squashfs-tools.orig/action.c
+++ squashfs-tools/action.c
@@ -44,6 +44,10 @@
 #include "action.h"
 #include "error.h"
 
+#if !defined(FNM_EXTMATCH)
+#define FNM_EXTMATCH 0
+#endif
+
 /*
  * code to parse actions
  */
Index: squashfs-tools/mksquashfs.c
===================================================================
--- squashfs-tools.orig/mksquashfs.c
+++ squashfs-tools/mksquashfs.c
@@ -1261,6 +1261,10 @@ void write_dir(squashfs_inode *inode, st
 		dir_size + 3, directory_block, directory_offset, NULL, NULL,
 		dir, 0);
 
+#if !defined(FNM_EXTMATCH)
+#define FNM_EXTMATCH 0
+#endif
+
 #ifdef SQUASHFS_TRACE
 	{
 		unsigned char *dirp;
Index: squashfs-tools/pseudo.c
===================================================================
--- squashfs-tools.orig/pseudo.c
+++ squashfs-tools/pseudo.c
@@ -32,6 +32,7 @@
 #include <stdlib.h>
 #include <sys/types.h>
 #include <sys/wait.h>
+#include <sys/stat.h>
 #include <ctype.h>
 
 #include "pseudo.h"
Index: squashfs-tools/unsquashfs.c
===================================================================
--- squashfs-tools.orig/unsquashfs.c
+++ squashfs-tools/unsquashfs.c
@@ -42,6 +42,10 @@
 #include <sys/sysmacros.h>
 #endif
 
+#ifndef FNM_EXTMATCH
+#define FNM_EXTMATCH 0
+#endif
+
 struct cache *fragment_cache, *data_cache;
 struct queue *to_reader, *to_inflate, *to_writer, *from_writer;
 pthread_t *thread, *inflator_thread;