From: Fabio Estevam Date: Wed, 19 Feb 2025 13:02:42 +0000 (-0300) Subject: ubifs-utils: journal: Include X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=173f9714c8da1d685bfa951d43b9310d16bbab3c;p=mtd-utils.git 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: Signed-off-by: Fabio Estevam Reviewed-by: Zhihao Cheng Signed-off-by: David Oberhollenzer --- diff --git a/ubifs-utils/libubifs/journal.c b/ubifs-utils/libubifs/journal.c index e78ea14..45d82fd 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"