From 42e051acd32c28c2f93c946d0c4bf6f9eada2aa4 Mon Sep 17 00:00:00 2001 From: Bastian Germann Date: Wed, 29 Jan 2020 19:50:13 +0100 Subject: libubi: remove private kernel header from includes libubi.h includes ubi-media.h which was made private in the kernel a long time ago. There are users of libubi.h, e.g. swupdate, which have to have ubi-media.h available at build time with this inclusion. However, libubi.h uses only one symbol from ubi-media.h. Define that symbol in the header to enable using libubi.h without installing ubi-media.h. Make up for the transitive symbol use in ubiformat.c by including ubi-media.h. Signed-off-by: Bastian Germann Signed-off-by: David Oberhollenzer --- ubi-utils/ubiformat.c | 1 + 1 file changed, 1 insertion(+) (limited to 'ubi-utils') diff --git a/ubi-utils/ubiformat.c b/ubi-utils/ubiformat.c index be40e52..d1b12e4 100644 --- a/ubi-utils/ubiformat.c +++ b/ubi-utils/ubiformat.c @@ -38,6 +38,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3