diff options
Diffstat (limited to 'meta/recipes-devtools/mtd/files/0001-ubifs-utils-ubifs.h-Include-fcntl.h.patch')
-rw-r--r-- | meta/recipes-devtools/mtd/files/0001-ubifs-utils-ubifs.h-Include-fcntl.h.patch | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mtd/files/0001-ubifs-utils-ubifs.h-Include-fcntl.h.patch b/meta/recipes-devtools/mtd/files/0001-ubifs-utils-ubifs.h-Include-fcntl.h.patch new file mode 100644 index 0000000000..b603ac8fd6 --- /dev/null +++ b/meta/recipes-devtools/mtd/files/0001-ubifs-utils-ubifs.h-Include-fcntl.h.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 2fc872697f72214e1e3efc6c2523e374fa5d681d Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Estevam <festevam@gmail.com> | ||
3 | Date: Mon, 17 Feb 2025 16:02:04 -0300 | ||
4 | Subject: [PATCH v4 mtd-utils 1/4] ubifs-utils: ubifs.h: Include <fcntl.h> | ||
5 | |||
6 | Include the <fcntl.h> header file to fix the following error | ||
7 | when building with musl: | ||
8 | |||
9 | | In file included from ../git/ubifs-utils/common/compr.c:42: | ||
10 | | ../git/ubifs-utils/libubifs/ubifs.h:313:9: error: unknown type name 'loff_t'; did you mean 'off_t'? | ||
11 | | 313 | loff_t ui_size; | ||
12 | | | ^~~~~~ | ||
13 | | | off_t | ||
14 | | ../git/ubifs-utils/libubifs/ubifs.h:1341:9: error: unknown type name 'loff_t'; did you mean 'off_t'? | ||
15 | | 1341 | loff_t i_size; | ||
16 | | | ^~~~~~ | ||
17 | | | off_t | ||
18 | | ../git/ubifs-utils/libubifs/ubifs.h:1342:9: error: unknown type name 'loff_t'; did you mean 'off_t'? | ||
19 | | 1342 | loff_t d_size; | ||
20 | | | ^~~~~~ | ||
21 | | | off_t | ||
22 | | ../git/ubifs-utils/libubifs/ubifs.h:1899:44: error: unknown type name 'loff_t'; did you mean 'off_t'? | ||
23 | | 1899 | int deletion, loff_t new_size); | ||
24 | | | ^~~~~~ | ||
25 | | | off_t | ||
26 | | make: *** [Makefile:4878: ubifs-utils/common/mkfs_ubifs-compr.o] Error 1 | ||
27 | |||
28 | Upstream-Status: Backport [https://github.com/sigma-star/mtd-utils/commit/12bc9ad824bd8f18a5ec9c7154ad2374cf8c7ae3] | ||
29 | Signed-off-by: Fabio Estevam <festevam@gmail.com> | ||
30 | Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> | ||
31 | Reviewed-by: Khem Raj <raj.khem@gmail.com> | ||
32 | --- | ||
33 | Changes since v3: | ||
34 | - Removed Upstream-Status tag. | ||
35 | |||
36 | ubifs-utils/libubifs/ubifs.h | 1 + | ||
37 | 1 file changed, 1 insertion(+) | ||
38 | |||
39 | diff --git a/ubifs-utils/libubifs/ubifs.h b/ubifs-utils/libubifs/ubifs.h | ||
40 | index 0908a2289208..1c7bc7bd0c80 100644 | ||
41 | --- a/ubifs-utils/libubifs/ubifs.h | ||
42 | +++ b/ubifs-utils/libubifs/ubifs.h | ||
43 | @@ -11,6 +11,7 @@ | ||
44 | #ifndef __UBIFS_H__ | ||
45 | #define __UBIFS_H__ | ||
46 | |||
47 | +#include <fcntl.h> | ||
48 | #include <string.h> | ||
49 | |||
50 | #include "linux_types.h" | ||
51 | -- | ||
52 | 2.34.1 | ||
53 | |||