From 7fe1e3f1612f6eb220d6a9796edacf24b7706876 Mon Sep 17 00:00:00 2001 From: Denys Vlasenko Date: Sun, 11 Mar 2012 18:04:14 +0100 Subject: [PATCH] ubi_tools: add workaround for bad kernel headers. Closes 4838 Signed-off-by: Denys Vlasenko --- miscutils/ubi_tools.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c index 2a426dbdc..dd99a44f4 100644 --- a/miscutils/ubi_tools.c +++ b/miscutils/ubi_tools.c @@ -60,6 +60,10 @@ //kbuild:lib-$(CONFIG_UBIUPDATEVOL) += ubi_tools.o #include "libbb.h" +/* Some versions of kernel have broken headers, need this hack */ +#ifndef __packed +# define __packed __attribute__((packed)) +#endif #include #define OPTION_M (1 << 0) -- 2.25.1