summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-03-11 17:04:14 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2012-03-11 17:04:14 (GMT)
commit7fe1e3f1612f6eb220d6a9796edacf24b7706876 (patch)
tree2fe34459cdd8075b23596fda7a6b9dc8c0d59bbf
parent65457625a7a6c8939e46d01a4cda566d82ed5343 (diff)
downloadbusybox-7fe1e3f1612f6eb220d6a9796edacf24b7706876.tar.gz
busybox-7fe1e3f1612f6eb220d6a9796edacf24b7706876.tar.bz2
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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/miscutils/ubi_tools.c b/miscutils/ubi_tools.c
index 2a426db..dd99a44 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)