diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-11 18:04:14 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2012-03-11 18:04:14 +0100 |
commit | 7fe1e3f1612f6eb220d6a9796edacf24b7706876 (patch) | |
tree | 2fe34459cdd8075b23596fda7a6b9dc8c0d59bbf /miscutils | |
parent | 65457625a7a6c8939e46d01a4cda566d82ed5343 (diff) | |
download | busybox-7fe1e3f1612f6eb220d6a9796edacf24b7706876.tar.gz |
ubi_tools: add workaround for bad kernel headers. Closes 4838
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils')
-rw-r--r-- | miscutils/ubi_tools.c | 4 |
1 files changed, 4 insertions, 0 deletions
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 <mtd/ubi-user.h> #define OPTION_M (1 << 0) |