summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-08-24 10:02:59 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-08-24 10:02:59 +0200
commitdfae7f60dfb577031175848b0dbf5d12ff1ebbc3 (patch)
treec93fbf4405770e7e9349140f359f1af808f19859
parentfe76249289ac63acec462a649aa5268a7c21ba6d (diff)
Make sure ubi-media structures are visible for libubigen
The libubigen.h header relies on external declarations in ubi-media.h. While not technically needed, it generates warnings in mtdinfo.c if those are not visible. All other places where libubigen is used include the header first. This is primarily to silence compiler warnings related to the missing declrations. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--ubi-utils/mtdinfo.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/ubi-utils/mtdinfo.c b/ubi-utils/mtdinfo.c
index 154872d..7dff0de 100644
--- a/ubi-utils/mtdinfo.c
+++ b/ubi-utils/mtdinfo.c
@@ -30,6 +30,7 @@
#include <string.h>
#include <unistd.h>
#include <mtd/mtd-user.h>
+#include <mtd/ubi-media.h>
#include <libubigen.h>
#include <libmtd.h>