From 65077d8d664821e323d011956049c1c1b97d9560 Mon Sep 17 00:00:00 2001 From: Fabio Estevam Date: Mon, 17 Feb 2025 16:07:49 -0300 Subject: [PATCH v4 mtd-utils 2/4] ubifs-utils: journal: Include Include the header file to fix the following error when building with musl: | ../git/ubifs-utils/libubifs/journal.c: In function 'ubifs_get_dent_type': | ../git/ubifs-utils/libubifs/journal.c:414:24: error: 'S_IFMT' undeclared (first use in this function) | 414 | switch (mode & S_IFMT) { | | ^~~~~~ | ../git/ubifs-utils/libubifs/journal.c:414:24: note: each undeclared identifier is reported only once for each function it appears in | ../git/ubifs-utils/libubifs/journal.c:415:14: error: 'S_IFREG' undeclared (first use in this function) | 415 | case S_IFREG: Upstream-Status: Backport [https://github.com/sigma-star/mtd-utils/commit/173f9714c8da1d685bfa951d43b9310d16bbab3c] Signed-off-by: Fabio Estevam Reviewed-by: Zhihao Cheng --- Changes since v3: - Removed Upstream-Status tag. ubifs-utils/libubifs/journal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ubifs-utils/libubifs/journal.c b/ubifs-utils/libubifs/journal.c index e78ea14f3e69..45d82fd54bdb 100644 --- a/ubifs-utils/libubifs/journal.c +++ b/ubifs-utils/libubifs/journal.c @@ -46,6 +46,7 @@ * all the nodes. */ +#include #include "bitops.h" #include "kmem.h" #include "ubifs.h" -- 2.34.1