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 | |
parent | 65457625a7a6c8939e46d01a4cda566d82ed5343 (diff) | |
download | busybox-w32-7fe1e3f1612f6eb220d6a9796edacf24b7706876.tar.gz busybox-w32-7fe1e3f1612f6eb220d6a9796edacf24b7706876.tar.bz2 busybox-w32-7fe1e3f1612f6eb220d6a9796edacf24b7706876.zip |
ubi_tools: add workaround for bad kernel headers. Closes 4838
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 @@ | |||
60 | //kbuild:lib-$(CONFIG_UBIUPDATEVOL) += ubi_tools.o | 60 | //kbuild:lib-$(CONFIG_UBIUPDATEVOL) += ubi_tools.o |
61 | 61 | ||
62 | #include "libbb.h" | 62 | #include "libbb.h" |
63 | /* Some versions of kernel have broken headers, need this hack */ | ||
64 | #ifndef __packed | ||
65 | # define __packed __attribute__((packed)) | ||
66 | #endif | ||
63 | #include <mtd/ubi-user.h> | 67 | #include <mtd/ubi-user.h> |
64 | 68 | ||
65 | #define OPTION_M (1 << 0) | 69 | #define OPTION_M (1 << 0) |