summaryrefslogtreecommitdiff
path: root/miscutils/ubi_tools.c
diff options
context:
space:
mode:
authorDenys Vlasenko2012-03-11 18:04:14 +0100
committerDenys Vlasenko2012-03-11 18:04:14 +0100
commit7fe1e3f1612f6eb220d6a9796edacf24b7706876 (patch)
tree2fe34459cdd8075b23596fda7a6b9dc8c0d59bbf /miscutils/ubi_tools.c
parent65457625a7a6c8939e46d01a4cda566d82ed5343 (diff)
downloadbusybox-7fe1e3f1612f6eb220d6a9796edacf24b7706876.zip
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/ubi_tools.c')
-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)