diff options
Diffstat (limited to 'meta/recipes-devtools/mtd/files/0002-ubifs-utils-journal-Include-sys-stat.h.patch')
-rw-r--r-- | meta/recipes-devtools/mtd/files/0002-ubifs-utils-journal-Include-sys-stat.h.patch | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/mtd/files/0002-ubifs-utils-journal-Include-sys-stat.h.patch b/meta/recipes-devtools/mtd/files/0002-ubifs-utils-journal-Include-sys-stat.h.patch new file mode 100644 index 0000000000..d92a3fb4b6 --- /dev/null +++ b/meta/recipes-devtools/mtd/files/0002-ubifs-utils-journal-Include-sys-stat.h.patch | |||
@@ -0,0 +1,41 @@ | |||
1 | From 65077d8d664821e323d011956049c1c1b97d9560 Mon Sep 17 00:00:00 2001 | ||
2 | From: Fabio Estevam <festevam@gmail.com> | ||
3 | Date: Mon, 17 Feb 2025 16:07:49 -0300 | ||
4 | Subject: [PATCH v4 mtd-utils 2/4] ubifs-utils: journal: Include <sys/stat.h> | ||
5 | |||
6 | Include the <sys/stat.h> header file to fix the following error | ||
7 | when building with musl: | ||
8 | |||
9 | | ../git/ubifs-utils/libubifs/journal.c: In function 'ubifs_get_dent_type': | ||
10 | | ../git/ubifs-utils/libubifs/journal.c:414:24: error: 'S_IFMT' undeclared (first use in this function) | ||
11 | | 414 | switch (mode & S_IFMT) { | ||
12 | | | ^~~~~~ | ||
13 | | ../git/ubifs-utils/libubifs/journal.c:414:24: note: each undeclared identifier is reported only once for each function it appears in | ||
14 | | ../git/ubifs-utils/libubifs/journal.c:415:14: error: 'S_IFREG' undeclared (first use in this function) | ||
15 | | 415 | case S_IFREG: | ||
16 | |||
17 | Upstream-Status: Backport [https://github.com/sigma-star/mtd-utils/commit/173f9714c8da1d685bfa951d43b9310d16bbab3c] | ||
18 | Signed-off-by: Fabio Estevam <festevam@gmail.com> | ||
19 | Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com> | ||
20 | --- | ||
21 | Changes since v3: | ||
22 | - Removed Upstream-Status tag. | ||
23 | |||
24 | ubifs-utils/libubifs/journal.c | 1 + | ||
25 | 1 file changed, 1 insertion(+) | ||
26 | |||
27 | diff --git a/ubifs-utils/libubifs/journal.c b/ubifs-utils/libubifs/journal.c | ||
28 | index e78ea14f3e69..45d82fd54bdb 100644 | ||
29 | --- a/ubifs-utils/libubifs/journal.c | ||
30 | +++ b/ubifs-utils/libubifs/journal.c | ||
31 | @@ -46,6 +46,7 @@ | ||
32 | * all the nodes. | ||
33 | */ | ||
34 | |||
35 | +#include <sys/stat.h> | ||
36 | #include "bitops.h" | ||
37 | #include "kmem.h" | ||
38 | #include "ubifs.h" | ||
39 | -- | ||
40 | 2.34.1 | ||
41 | |||