From: Denys Vlasenko Date: Sun, 11 Mar 2012 17:04:14 +0000 (+0100) Subject: ubi_tools: add workaround for bad kernel headers. Closes 4838 X-Git-Tag: 1_20_0~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=7fe1e3f1612f6eb220d6a9796edacf24b7706876;p=oweals%2Fbusybox.git ubi_tools: add workaround for bad kernel headers. Closes 4838 Signed-off-by: Denys Vlasenko --- 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)