diff options
-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) |