-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path14-backfire-buildfix-sysmacros_error.patch
86 lines (86 loc) · 2.23 KB
/
14-backfire-buildfix-sysmacros_error.patch
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
diff --git a/tools/mtd-utils/patches/mtdutils-sysmacros_error.patch b/tools/mtd-utils/patches/mtdutils-sysmacros_error.patch
new file mode 100644
index 0000000000..fc237a2388
--- /dev/null
+++ b/tools/mtd-utils/patches/mtdutils-sysmacros_error.patch
@@ -0,0 +1,38 @@
+--- a/mkfs.jffs2.c
++++ b/mkfs.jffs2.c
+@@ -74,6 +74,7 @@
+ #undef crc32
+ #include "crc32.h"
+ #include "rbtree.h"
++#include <sys/sysmacros.h>
+
+ #ifdef __CYGWIN__
+ #include <cygwin/ioctl.h>
+--- a/mkfs.ubifs/mkfs.ubifs.h
++++ b/mkfs.ubifs/mkfs.ubifs.h
+@@ -25,6 +25,7 @@
+
+ #define _GNU_SOURCE
+ #define _LARGEFILE64_SOURCE
++#include <sys/sysmacros.h>
+ #include <unistd.h>
+ #include <stdlib.h>
+ #include <stdio.h>
+@@ -35,6 +36,7 @@
+ #include <byteswap.h>
+ #include <linux/types.h>
+ #ifdef __linux__
++#define llseek lseek64
+ #include <linux/fs.h>
+ #else
+ # ifndef O_LARGEFILE
+--- a/ubi-utils/include/libubi.h
++++ b/ubi-utils/include/libubi.h
+@@ -27,6 +27,7 @@
+ #include <stdint.h>
+ #include <mtd/ubi-user.h>
+ #include <mtd/ubi-media.h>
++#include <sys/sysmacros.h>
+
+ #ifdef __cplusplus
+ extern "C" {
diff --git a/tools/squashfs4/patches/squashfs-sysmacros_error.patch b/tools/squashfs4/patches/squashfs-sysmacros_error.patch
new file mode 100644
index 0000000000..09baeecddc
--- /dev/null
+++ b/tools/squashfs4/patches/squashfs-sysmacros_error.patch
@@ -0,0 +1,20 @@
+--- a/squashfs-tools/mksquashfs.h
++++ b/squashfs-tools/mksquashfs.h
+@@ -23,6 +23,7 @@
+ * mksquashfs.h
+ *
+ */
++#include <sys/sysmacros.h>
+
+ #if __BYTE_ORDER == __BIG_ENDIAN
+ #define SQUASHFS_SWAP_SHORTS(s, d, n) swap_le16_num(s, d, n)
+--- a/squashfs-tools/unsquashfs.h
++++ b/squashfs-tools/unsquashfs.h
+@@ -20,6 +20,7 @@
+ *
+ * unsquashfs.h
+ */
++#include <sys/sysmacros.h>
+
+ #define TRUE 1
+ #define FALSE 0
diff --git a/tools/squashfs/patches/squashfs-sysmacros_error.patch b/tools/squashfs/patches/squashfs-sysmacros_error.patch
new file mode 100644
index 0000000..864d044
--- /dev/null
+++ b/tools/squashfs/patches/squashfs-sysmacros_error.patch
@@ -0,0 +1,10 @@
+--- a/squashfs-tools/squashfs_fs.h
++++ b/squashfs-tools/squashfs_fs.h
+@@ -23,6 +23,7 @@
+ *
+ * squashfs_fs.h
+ */
++#include <sys/sysmacros.h>
+
+ #define SQUASHFS_MAJOR 3
+ #define SQUASHFS_MINOR 0