aboutsummaryrefslogtreecommitdiff
path: root/miscutils
diff options
context:
space:
mode:
Diffstat (limited to 'miscutils')
-rw-r--r--miscutils/ubi_tools.c4
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)